diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-10-05 11:22:10 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-10-05 11:22:10 -0400 |
commit | bae57838c2dd789064b246308c7cb3a33bba5b8e (patch) | |
tree | b43db60ada251debd3bf5d900d017b2cd29e421f /app/Schema | |
parent | 8e5673e3d289e4d28b4fc9f20721bda9f1c858c7 (diff) |
Input date format is now a config parameter instead of the current locale
Diffstat (limited to 'app/Schema')
-rw-r--r-- | app/Schema/Mysql.php | 8 | ||||
-rw-r--r-- | app/Schema/Postgres.php | 8 | ||||
-rw-r--r-- | app/Schema/Sqlite.php | 8 |
3 files changed, 21 insertions, 3 deletions
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php index e6a33ee5..8b6ba5ae 100644 --- a/app/Schema/Mysql.php +++ b/app/Schema/Mysql.php @@ -5,7 +5,13 @@ namespace Schema; use PDO; use Core\Security; -const VERSION = 29; +const VERSION = 30; + +function version_30($pdo) +{ + $rq = $pdo->prepare('INSERT INTO settings VALUES (?, ?)'); + $rq->execute(array('application_date_format', 'm/d/Y')); +} function version_29($pdo) { diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php index 0eeb2a72..90a3da40 100644 --- a/app/Schema/Postgres.php +++ b/app/Schema/Postgres.php @@ -5,7 +5,13 @@ namespace Schema; use PDO; use Core\Security; -const VERSION = 10; +const VERSION = 11; + +function version_11($pdo) +{ + $rq = $pdo->prepare('INSERT INTO settings VALUES (?, ?)'); + $rq->execute(array('application_date_format', 'm/d/Y')); +} function version_10($pdo) { diff --git a/app/Schema/Sqlite.php b/app/Schema/Sqlite.php index 5986d327..b39532f1 100644 --- a/app/Schema/Sqlite.php +++ b/app/Schema/Sqlite.php @@ -5,7 +5,13 @@ namespace Schema; use Core\Security; use PDO; -const VERSION = 29; +const VERSION = 30; + +function version_30($pdo) +{ + $rq = $pdo->prepare('INSERT INTO settings VALUES (?, ?)'); + $rq->execute(array('application_date_format', 'm/d/Y')); +} function version_29($pdo) { |