upgrade script from 2.1 to 2.2

git-svn-id: http://piwigo.org/svn/trunk@9595 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2011-03-10 10:04:52 +00:00
parent 94168b836e
commit f1e2d213cf
3 changed files with 123 additions and 1 deletions
+4
View File
@@ -284,6 +284,10 @@ else if (!in_array(PREFIX_TABLE.'themes', $tables))
{
$current_release = '2.0.0';
}
else if (!in_array('added_by', $columns_of[PREFIX_TABLE.'images']))
{
$current_release = '2.1.0';
}
else
{
die('No upgrade required, the database structure is up to date');