From 284e7fbc23dbcf04323a27c1dcfc02b759cd0af2 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Wed, 2 Dec 2009 03:36:11 +0000 Subject: [PATCH] automated database updates for SVN releases (hurray?) git-svn-id: http://www.observium.org/svn/observer/trunk@540 61d68cd4-352d-0410-923a-c4978735b2b8 --- mysql-schema.sql => database-schema.sql | 0 060-to-current.sql => database-update.sql | 0 discovery.php | 2 ++ includes/static-config.php | 2 +- 4 files changed, 3 insertions(+), 1 deletion(-) rename mysql-schema.sql => database-schema.sql (100%) rename 060-to-current.sql => database-update.sql (100%) diff --git a/mysql-schema.sql b/database-schema.sql similarity index 100% rename from mysql-schema.sql rename to database-schema.sql diff --git a/060-to-current.sql b/database-update.sql similarity index 100% rename from 060-to-current.sql rename to database-update.sql diff --git a/discovery.php b/discovery.php index 8599b76aa..c5c451a4a 100755 --- a/discovery.php +++ b/discovery.php @@ -38,6 +38,8 @@ if(!$where) { exit; } +shell_exec("scripts/update-sql.php database-update.sql"); + if(isset($options['d'])) { echo("DEBUG!\n"); $debug = 1; } diff --git a/includes/static-config.php b/includes/static-config.php index 994d502a1..f4979dfd3 100644 --- a/includes/static-config.php +++ b/includes/static-config.php @@ -70,7 +70,7 @@ if(!$config['graph_colours']['mixed']) { # No changes below this line # ############################## -$config['version'] = "0.7.0"; +$config['version'] = "0.7.0-SVN"; $config['rrd_opts_array'] = explode(" ", trim($config['rrdgraph_def_text'])); # print_r($config['rrd_opts_array']);