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