summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-03-09 03:29:22 +0000
committerBharat Mediratta <bharat@menalto.com>2009-03-09 03:29:22 +0000
commit1ad7ca639ddb87af3755a4ac17ae5199fa5c4fc2 (patch)
treea44e94ad9bddd9bbe99c002550916d94ab7373f7 /core
parent445f18fb51a55102a95b6a1ffd388ee06ecd5041 (diff)
Make the description a text column so that we can handle much larger
descriptions.
Diffstat (limited to 'core')
-rw-r--r--core/helpers/core_installer.php2
-rw-r--r--core/models/item.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/helpers/core_installer.php b/core/helpers/core_installer.php
index 5c3b9ff0..195983e1 100644
--- a/core/helpers/core_installer.php
+++ b/core/helpers/core_installer.php
@@ -56,7 +56,7 @@ class core_installer {
$db->query("CREATE TABLE {items} (
`album_cover_item_id` int(9) default NULL,
`created` int(9) default NULL,
- `description` varchar(255) default NULL,
+ `description` text default NULL,
`height` int(9) default NULL,
`id` int(9) NOT NULL auto_increment,
`left` int(9) NOT NULL,
diff --git a/core/models/item.php b/core/models/item.php
index 591d292e..f2fb8fa4 100644
--- a/core/models/item.php
+++ b/core/models/item.php
@@ -25,7 +25,7 @@ class Item_Model extends ORM_MPTT {
var $rules = array(
"name" => "required|length[0,255]",
"title" => "required|length[0,255]",
- "description" => "length[0,255]"
+ "description" => "length[0,65535]"
);
/**