summaryrefslogtreecommitdiff
path: root/models/schema.php
diff options
context:
space:
mode:
authorrzeka <piotr@rzeka.net>2014-02-24 21:08:56 +0100
committerrzeka <piotr@rzeka.net>2014-02-24 21:08:56 +0100
commite374a6fd6499b50d4587d136490ced7444f8bc2b (patch)
tree9e620688d4291c4d2877b7156776f00438092f9e /models/schema.php
parentb4784d39e11c2d576076930bb700bf146321bf62 (diff)
Fixed timezone warning by adding timezone config option
Diffstat (limited to 'models/schema.php')
-rw-r--r--models/schema.php8
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');