summaryrefslogtreecommitdiff
path: root/models/schema.php
diff options
context:
space:
mode:
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');