From e90e6085dfd35ee101e43b0fa0f84a71a19f7208 Mon Sep 17 00:00:00 2001 From: Jan-Philipp Litza Date: Tue, 27 Dec 2011 13:22:43 +0100 Subject: fixed various bug in DB update scripts --- db/update.d/06_Shifts.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'db/update.d/06_Shifts.php') diff --git a/db/update.d/06_Shifts.php b/db/update.d/06_Shifts.php index 721d73bc..4aeb59b1 100644 --- a/db/update.d/06_Shifts.php +++ b/db/update.d/06_Shifts.php @@ -7,6 +7,8 @@ if(sql_num_query("SHOW COLUMNS FROM `Shifts` LIKE 'Date_'") == 2) { sql_query("ALTER TABLE `Shifts` DROP `Len`"); } } + _datetime_to_int("Shifts", "DateS"); + _datetime_to_int("Shifts", "DateE"); sql_query("ALTER TABLE `Shifts` CHANGE `DateS` `start` INT NOT NULL, CHANGE `DateE` `end` INT NOT NULL"); $applied = true; -- cgit v1.2.3-70-g09d2