From c01d0c1790613fd73efc3c78d0c12debdfb1cbc7 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Tue, 12 Apr 2011 20:07:14 +0000 Subject: bug:2224 change nb_image_page into smallint(3) git-svn-id: http://piwigo.org/svn/trunk@10341 68402e56-0260-453c-a942-63ccdbb3a9ee --- install/db/101-database.php | 2 +- install/db/102-database.php | 45 ++++++++++++++++++++++++++++++++++++++ install/piwigo_structure-mysql.sql | 2 +- 3 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 install/db/102-database.php (limited to 'install') diff --git a/install/db/101-database.php b/install/db/101-database.php index 0fa8403be..8f37061f9 100644 --- a/install/db/101-database.php +++ b/install/db/101-database.php @@ -33,7 +33,7 @@ if ('mysql' == $conf['dblayer']) { pwg_query(' ALTER TABLE '.USER_INFOS_TABLE.' - ADD COLUMN `nb_image_page` tinyint(3) unsigned NOT NULL default \'15\' + ADD COLUMN `nb_image_page` smallint(3) unsigned NOT NULL default \'15\' ;'); } else if (in_array($conf['dblayer'], array('pgsql', 'sqlite', 'pdo-sqlite'))) diff --git a/install/db/102-database.php b/install/db/102-database.php new file mode 100644 index 000000000..d3fa13a4a --- /dev/null +++ b/install/db/102-database.php @@ -0,0 +1,45 @@ + \ No newline at end of file diff --git a/install/piwigo_structure-mysql.sql b/install/piwigo_structure-mysql.sql index 42e94d367..cc05c311f 100644 --- a/install/piwigo_structure-mysql.sql +++ b/install/piwigo_structure-mysql.sql @@ -404,7 +404,7 @@ CREATE TABLE `piwigo_user_group` ( DROP TABLE IF EXISTS `piwigo_user_infos`; CREATE TABLE `piwigo_user_infos` ( `user_id` smallint(5) NOT NULL default '0', - `nb_image_page` tinyint(3) unsigned NOT NULL default '15', + `nb_image_page` smallint(3) unsigned NOT NULL default '15', `status` enum('webmaster','admin','normal','generic','guest') NOT NULL default 'guest', `language` varchar(50) NOT NULL default 'en_UK', `maxwidth` smallint(6) default NULL, -- cgit v1.2.3