reset sql auto update. add "pre-1000" script for revisions below 1000 (cut down excessive SQL churn).

git-svn-id: http://www.observium.org/svn/observer/trunk@1001 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-03-10 14:56:19 +00:00
parent a549e37fff
commit eea86d19d1
3 changed files with 125 additions and 121 deletions

View File

@@ -55,6 +55,10 @@ if (file_exists('.svn'))
if ($dbu_rev+0 > $db_rev)
{
if($dbu_rev+0 < "1000") {
echo("SVN revision changed.\nRunning pre-revision 100 SQL update script...\n");
shell_exec("scripts/update-sql.php database-update-pre1000.sql");
}
echo("SVN revision changed.\nRunning development SQL update script from r$db_rev to r" . trim($dbu_rev) . "...\n");
shell_exec("scripts/update-sql.php database-update.sql");
if ($db_rev == 0)