db update :)

git-svn-id: http://www.observium.org/svn/observer/trunk@2805 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-12-23 14:06:27 +00:00
parent f08d2e95a9
commit 661480fb4c
3 changed files with 19 additions and 13 deletions
+5
View File
@@ -137,6 +137,11 @@ if (file_exists('.svn'))
echo("Running pre-revision 2245 (0.11.5) SQL update script...\n");
shell_exec("scripts/update-sql.php database-update-pre2245.sql");
}
if ($db_rev+0 < "2804")
{
echo("Running pre-revision 2804 (0.11.12) SQL update script...\n");
shell_exec("scripts/update-sql.php database-update-pre2804.sql");
}
echo("Running development SQL update script to update from r$db_rev to r" . trim($dbu_rev) . "...\n");
shell_exec("scripts/update-sql.php database-update.sql");
if ($db_rev == 0)