diff options
author | rzeka <piotr@rzeka.net> | 2014-02-24 21:08:56 +0100 |
---|---|---|
committer | rzeka <piotr@rzeka.net> | 2014-02-24 21:08:56 +0100 |
commit | e374a6fd6499b50d4587d136490ced7444f8bc2b (patch) | |
tree | 9e620688d4291c4d2877b7156776f00438092f9e /models/schema.php | |
parent | b4784d39e11c2d576076930bb700bf146321bf62 (diff) |
Fixed timezone warning by adding timezone config option
Diffstat (limited to 'models/schema.php')
-rw-r--r-- | models/schema.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/models/schema.php b/models/schema.php index 84926d73..3704aad1 100644 --- a/models/schema.php +++ b/models/schema.php @@ -2,6 +2,14 @@ namespace Schema; +function version_4($pdo) +{ + $pdo->exec('ALTER TABLE config ADD column timezone TEXT'); + + //set default timezone to UTC + $pdo->exec('UPDATE config SET timezone = \'UTC\''); +} + function version_3($pdo) { $pdo->exec('ALTER TABLE projects ADD column token TEXT'); |