From ee497c34c30e3c79a5dd6c51ecb27a21427a2309 Mon Sep 17 00:00:00 2001 From: rohieb Date: Fri, 9 Jan 2009 16:14:22 +0100 Subject: [PATCH 1/1] fixed error messages concerning rooms_archive on update to iserv2 (see http://wiki.iserv.eu/w/index.php?title=Raumbelegungsplan/Probleme#Update-Skript_von_IServ1_auf_IServ2_zeigt_Fehlermeldungen) --- maint/update-iserv1-iserv2.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maint/update-iserv1-iserv2.pl b/maint/update-iserv1-iserv2.pl index c0f219a..aa97f0c 100755 --- a/maint/update-iserv1-iserv2.pl +++ b/maint/update-iserv1-iserv2.pl @@ -208,7 +208,7 @@ print "importing old bookings...\n"; IServ::DB::Exec "CREATE TABLE mod_roomreservation_bookings_old (id INT NOT NULL PRIMARY KEY, room TEXT NOT NULL, date DATE NOT NULL, timebegin TIME NOT NULL, timeend TIME NOT NULL, act TEXT REFERENCES users(Act) ON DELETE CASCADE ON UPDATE CASCADE NOT NULL, class TEXT, reason TEXT NOT NULL, fixed BOOL);"; while() { # rename the table - $_ =~ s/INSERT INTO rooms/INSERT INTO mod_roomreservation_bookings_old/; + $_ =~ s/INSERT INTO rooms /INSERT INTO mod_roomreservation_bookings_old /; IServ::DB::Exec($_); } -- 2.20.1