diff options
author | plegall <plg@piwigo.org> | 2006-04-13 20:42:37 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2006-04-13 20:42:37 +0000 |
commit | d7393a5980269e0ddfe114f5a3559158f1784d81 (patch) | |
tree | 10ddba6a28d2b78de28ed02c8830e2f7685907de /install | |
parent | 8da9ed8d9baac5583c72c2d09c01bddd7adb0cb5 (diff) |
merge -r1157:1158 from branch-1_6 into trunk (images_i1 comes back)
git-svn-id: http://piwigo.org/svn/trunk@1159 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | install/db/23-database.php | 50 | ||||
-rw-r--r-- | install/phpwebgallery_structure.sql | 3 |
2 files changed, 52 insertions, 1 deletions
diff --git a/install/db/23-database.php b/install/db/23-database.php new file mode 100644 index 000000000..a57568e5e --- /dev/null +++ b/install/db/23-database.php @@ -0,0 +1,50 @@ +<?php +// +-----------------------------------------------------------------------+ +// | PhpWebGallery - a PHP based picture gallery | +// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | +// | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net | +// +-----------------------------------------------------------------------+ +// | branch : BSF (Best So Far) +// | file : $RCSfile$ +// | last update : $Date: 2005-09-21 00:04:57 +0200 (mer, 21 sep 2005) $ +// | last modifier : $Author: plg $ +// | revision : $Revision: 870 $ +// +-----------------------------------------------------------------------+ +// | This program is free software; you can redistribute it and/or modify | +// | it under the terms of the GNU General Public License as published by | +// | the Free Software Foundation | +// | | +// | This program is distributed in the hope that it will be useful, but | +// | WITHOUT ANY WARRANTY; without even the implied warranty of | +// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | +// | General Public License for more details. | +// | | +// | You should have received a copy of the GNU General Public License | +// | along with this program; if not, write to the Free Software | +// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | +// | USA. | +// +-----------------------------------------------------------------------+ + +if (!defined('PHPWG_ROOT_PATH')) +{ + die('Hacking attempt!'); +} + +$upgrade_description = 'index images_i1 on storage_category_id comes back'; + +$query = ' +ALTER TABLE '.PREFIX_TABLE.'images + ADD INDEX images_i1(storage_category_id) +;'; +pwg_query($query); + +// +-----------------------------------------------------------------------+ +// | End notification | +// +-----------------------------------------------------------------------+ + +echo +"\n" +.$upgrade_description +."\n" +; +?> diff --git a/install/phpwebgallery_structure.sql b/install/phpwebgallery_structure.sql index dbc7b2335..189831bbe 100644 --- a/install/phpwebgallery_structure.sql +++ b/install/phpwebgallery_structure.sql @@ -172,7 +172,8 @@ CREATE TABLE `phpwebgallery_images` ( KEY `images_i2` (`date_available`), KEY `images_i3` (`average_rate`), KEY `images_i4` (`hit`), - KEY `images_i5` (`date_creation`) + KEY `images_i5` (`date_creation`), + KEY `images_i1` (`storage_category_id`) ) TYPE=MyISAM; -- |