diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-03-14 20:53:33 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-03-14 20:53:33 -0400 |
commit | 253996901a10918e3207d46839cdfdc90d200e72 (patch) | |
tree | 5e359471d8e7de963277c37c6ff9611181505975 /app/Schema/Mysql.php | |
parent | 4700139a86d1ef44eabe43edb5a4abff9c645811 (diff) |
Calculate the time spent based on the timetable
Diffstat (limited to 'app/Schema/Mysql.php')
-rw-r--r-- | app/Schema/Mysql.php | 7 |
1 files changed, 6 insertions, 1 deletions
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) { |