mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user