[icinga-checkins] icinga.org: icinga-core/next: mark the upgrade script "this version" #2682

git at icinga.org git at icinga.org
Fri Jun 15 17:10:17 CEST 2012


Module: icinga-core
Branch: next
Commit: 458d41e7d3342fe37b15fc56d7741b0512951089
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=458d41e7d3342fe37b15fc56d7741b0512951089

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Wed Jun 13 14:03:51 2012 +0200

mark the upgrade script "this version" #2682

refs #2682

---

 module/idoutils/db/scripts/upgradedb.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/module/idoutils/db/scripts/upgradedb.in b/module/idoutils/db/scripts/upgradedb.in
index 8096006..6bf1ea3 100755
--- a/module/idoutils/db/scripts/upgradedb.in
+++ b/module/idoutils/db/scripts/upgradedb.in
@@ -74,7 +74,7 @@ if ($version eq $thisversion){
 
 
 # Read upgrade script in the directory containing this script
-my $file="../mysql/upgrade/mysql-upgrade-$version.sql";
+my $file="../mysql/upgrade/mysql-upgrade-$thisversion.sql";
 if (-e $file){
 	print "** DB upgrade required for $thisversion",$/;
 	print "     Using $file for upgrade...",$/;





More information about the icinga-checkins mailing list