From: rohieb Date: Fri, 9 Jan 2009 15:14:22 +0000 (+0100) Subject: fixed error messages concerning rooms_archive on update to iserv2 (see http://wiki... X-Git-Tag: REL_9.01.09~3 X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/commitdiff_plain/ee497c34c30e3c79a5dd6c51ecb27a21427a2309?ds=sidebyside fixed error messages concerning rooms_archive on update to iserv2 (see wiki.iserv.eu/w/index.php?title=Raumbelegungsplan/Probleme#Update-Skript_von_IServ1_auf_IServ2_zeigt_Fehlermeldungen) --- 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($_); }