From 1ad7ca639ddb87af3755a4ac17ae5199fa5c4fc2 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 9 Mar 2009 03:29:22 +0000 Subject: Make the description a text column so that we can handle much larger descriptions. --- core/helpers/core_installer.php | 2 +- core/models/item.php | 2 +- installer/init_var.php | 4 ++-- installer/install.sql | 8 ++++---- 4 files changed, 8 insertions(+), 8 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]" ); /** diff --git a/installer/init_var.php b/installer/init_var.php index b0f0d5db..b1ecf995 100644 --- a/installer/init_var.php +++ b/installer/init_var.php @@ -1,8 +1,8 @@