From 253996901a10918e3207d46839cdfdc90d200e72 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 14 Mar 2015 20:53:33 -0400 Subject: Calculate the time spent based on the timetable --- app/Schema/Mysql.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/Schema/Mysql.php') diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php index 03868748..b4db10a4 100644 --- a/app/Schema/Mysql.php +++ b/app/Schema/Mysql.php @@ -6,7 +6,12 @@ use PDO; use Core\Security; use Model\Link; -const VERSION = 52; +const VERSION = 53; + +function version_53($pdo) +{ + $pdo->exec("ALTER TABLE subtask_time_tracking ADD COLUMN time_spent FLOAT DEFAULT 0"); +} function version_52($pdo) { -- cgit v1.2.3