From 99d27e0ce4f48454808d2325cb407b5b35cf5e88 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 4 Jan 2015 22:34:59 -0500 Subject: Allow users to override the timezone and the language --- app/Schema/Postgres.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'app/Schema/Postgres.php') diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php index 75d184de..9d5aa7a7 100644 --- a/app/Schema/Postgres.php +++ b/app/Schema/Postgres.php @@ -5,7 +5,13 @@ namespace Schema; use PDO; use Core\Security; -const VERSION = 21; +const VERSION = 22; + +function version_22($pdo) +{ + $pdo->exec('ALTER TABLE users ADD COLUMN timezone VARCHAR(50)'); + $pdo->exec('ALTER TABLE users ADD COLUMN language CHAR(5)'); +} function version_21($pdo) { -- cgit v1.2.3