diff options
author | Frédéric Guillot <contact@fredericguillot.com> | 2014-02-24 18:08:58 -0500 |
---|---|---|
committer | Frédéric Guillot <contact@fredericguillot.com> | 2014-02-24 18:08:58 -0500 |
commit | 64e2e072294563b7c834382c2de631687f235fe8 (patch) | |
tree | cdfc0e7ae9b72e2d6166376a8c757a0325152c30 /models/schema.php | |
parent | e374a6fd6499b50d4587d136490ced7444f8bc2b (diff) |
Improve timezone pull-request and settings page
Diffstat (limited to 'models/schema.php')
-rw-r--r-- | models/schema.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/models/schema.php b/models/schema.php index 3704aad1..66571bbe 100644 --- a/models/schema.php +++ b/models/schema.php @@ -4,10 +4,7 @@ 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\''); + $pdo->exec("ALTER TABLE config ADD column timezone TEXT DEFAULT 'UTC'"); } function version_3($pdo) |