From 49682c913aec3855e576841dbfe18cba5ee2acfc Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 15 May 2006 21:43:20 +0000 Subject: [PATCH] bug 365 fixed: categories.rank was limited to 255 due to storage limitation. Maximum is 65535 now (should be good for a long time). git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1311 68402e56-0260-453c-a942-63ccdbb3a9ee --- install/db/22.2-database.php | 50 +++++++++++++++++++++++++++++ install/phpwebgallery_structure.sql | 2 +- install/upgrade_1.5.0.php | 5 ++- 3 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 install/db/22.2-database.php diff --git a/install/db/22.2-database.php b/install/db/22.2-database.php new file mode 100644 index 000000000..e1d5b7ef2 --- /dev/null +++ b/install/db/22.2-database.php @@ -0,0 +1,50 @@ + diff --git a/install/phpwebgallery_structure.sql b/install/phpwebgallery_structure.sql index 094485c5f..248d73221 100644 --- a/install/phpwebgallery_structure.sql +++ b/install/phpwebgallery_structure.sql @@ -28,7 +28,7 @@ CREATE TABLE `phpwebgallery_categories` ( `id_uppercat` smallint(5) unsigned default NULL, `comment` text, `dir` varchar(255) default NULL, - `rank` tinyint(3) unsigned default NULL, + `rank` smallint(5) unsigned default NULL, `status` enum('public','private') NOT NULL default 'public', `site_id` tinyint(4) unsigned default '1', `visible` enum('true','false') NOT NULL default 'true', diff --git a/install/upgrade_1.5.0.php b/install/upgrade_1.5.0.php index 711625183..036472449 100644 --- a/install/upgrade_1.5.0.php +++ b/install/upgrade_1.5.0.php @@ -300,7 +300,10 @@ ALTER TABLE ".PREFIX_TABLE."user_infos ALTER TABLE ".PREFIX_TABLE."user_infos ADD COLUMN enabled_high enum('true','false') NOT NULL default 'true' ;", - + " +ALTER TABLE ".PREFIX_TABLE."categories + CHANGE COLUMN rank rank SMALLINT(5) UNSIGNED DEFAULT NULL +;", // configuration table " UPDATE ".PREFIX_TABLE."config