From eb0315c74d6ec2495bf591623b1f97e2929d888e Mon Sep 17 00:00:00 2001 From: vdigital Date: Sun, 21 Jan 2007 15:49:45 +0000 Subject: Inefficient and non required index is removed on #_image_category. git-svn-id: http://piwigo.org/svn/trunk@1739 68402e56-0260-453c-a942-63ccdbb3a9ee --- install/db/44-database.php | 51 +++++++++++++++++++++++++++++++++++++ install/phpwebgallery_structure.sql | 1 - 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 install/db/44-database.php diff --git a/install/db/44-database.php b/install/db/44-database.php new file mode 100644 index 000000000..fc781a56c --- /dev/null +++ b/install/db/44-database.php @@ -0,0 +1,51 @@ + diff --git a/install/phpwebgallery_structure.sql b/install/phpwebgallery_structure.sql index 1006bc156..ac57b6283 100644 --- a/install/phpwebgallery_structure.sql +++ b/install/phpwebgallery_structure.sql @@ -154,7 +154,6 @@ CREATE TABLE `phpwebgallery_image_category` ( `image_id` mediumint(8) unsigned NOT NULL default '0', `category_id` smallint(5) unsigned NOT NULL default '0', PRIMARY KEY (`image_id`,`category_id`), - KEY `image_category_i1` (`image_id`), KEY `image_category_i2` (`category_id`) ) TYPE=MyISAM; -- cgit v1.2.3