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