diff options
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) |