Improve timezone pull-request and settings page

This commit is contained in:
Frédéric Guillot
2014-02-24 18:08:58 -05:00
parent e374a6fd64
commit 64e2e07229
6 changed files with 17 additions and 14 deletions

View File

@@ -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)