diff options
author | patdenice <patdenice@piwigo.org> | 2008-11-01 21:19:20 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2008-11-01 21:19:20 +0000 |
commit | 9a7de2b6b1b85a0642d34b24fa1daacbf119c0a9 (patch) | |
tree | e97cd0333f7b396382a96f8e7dc0098f2704c873 /install | |
parent | ae4e04da07998024fae600bf403ed58cfbed6515 (diff) |
- bugs correction in upgrade_1.7.0.php.
- only non-standard plugins are deactivated during upgrade.
git-svn-id: http://piwigo.org/svn/trunk@2815 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | install/upgrade_1.7.0.php | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/install/upgrade_1.7.0.php b/install/upgrade_1.7.0.php index 85533dcfa..1b2b5abe1 100644 --- a/install/upgrade_1.7.0.php +++ b/install/upgrade_1.7.0.php @@ -33,7 +33,6 @@ else } } -define('PREFIX_TABLE', $prefixeTable); define('UPGRADES_PATH', PHPWG_ROOT_PATH.'install/db'); list($dbnow) = mysql_fetch_row(pwg_query('SELECT NOW();')); @@ -68,15 +67,19 @@ foreach ($to_apply as $upgrade_id) array( 'id' => $upgrade_id, 'applied' => CURRENT_DATE, - 'description' => '[migration from 1.7.0 to '.RELEASE.'] not applied', + 'description' => '[migration from 1.7.0 to '.PHPWG_VERSION.'] not applied', ) ); } -mass_inserts( - '`'.UPGRADE_TABLE.'`', - array_keys($inserts[0]), - $inserts - ); + +if (!empty($inserts)) +{ + mass_inserts( + '`'.UPGRADE_TABLE.'`', + array_keys($inserts[0]), + $inserts + ); +} // +-----------------------------------------------------------------------+ // | Perform upgrades | @@ -106,7 +109,7 @@ for ($upgrade_id = 61; ; $upgrade_id++) INSERT INTO `'.PREFIX_TABLE.'upgrade` (id, applied, description) VALUES - (\''.$upgrade_id.'\', NOW(), \'[migration from 1.7.0 to '.RELEASE.'] '.$upgrade_description.'\') + (\''.$upgrade_id.'\', NOW(), \'[migration from 1.7.0 to '.PHPWG_VERSION.'] '.$upgrade_description.'\') ;'; pwg_query($query); } |