split database update file again to cut down on the churn of adding the index every time again (yes, apparently mysql does that even if the index is already there)

git-svn-id: http://www.observium.org/svn/observer/trunk@1531 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-07-29 19:27:47 +00:00
parent 0e7561e56f
commit ac8b98e9a0
2 changed files with 7 additions and 44 deletions

View File

@@ -69,11 +69,16 @@ if (file_exists('.svn'))
if ($dbu_rev+0 > $db_rev)
{
echo "SVN revision changed.\n";
if($db_rev+0 < "1000") {
echo("SVN revision changed.\nRunning pre-revision 1000 SQL update script...\n");
echo("Running pre-revision 1000 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");
if($db_rev+0 < "1435") {
echo("Running pre-revision 1435 SQL update script...\n");
shell_exec("scripts/update-sql.php database-update-pre1435.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)
{