diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-03-30 21:27:49 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-03-30 21:27:49 -0400 |
commit | 01f9ee3410bb4f6878033b353f5a0731397632d0 (patch) | |
tree | abf46f22cca9ac8d6aa410336ff5d5682708c6e0 /app/Schema | |
parent | b17f4b28ca948d223f12ceab96e38c018f32c6fd (diff) |
Add Gravatar integration
Diffstat (limited to 'app/Schema')
-rw-r--r-- | app/Schema/Mysql.php | 8 | ||||
-rw-r--r-- | app/Schema/Postgres.php | 6 | ||||
-rw-r--r-- | app/Schema/Sqlite.php | 8 |
3 files changed, 20 insertions, 2 deletions
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php index f0e0d6b2..4ea7b041 100644 --- a/app/Schema/Mysql.php +++ b/app/Schema/Mysql.php @@ -6,7 +6,13 @@ use PDO; use Core\Security; use Model\Link; -const VERSION = 59; +const VERSION = 60; + +function version_60($pdo) +{ + $rq = $pdo->prepare('INSERT INTO settings VALUES (?, ?)'); + $rq->execute(array('integration_gravatar', '0')); +} function version_59($pdo) { diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php index f7a0453d..93d8e869 100644 --- a/app/Schema/Postgres.php +++ b/app/Schema/Postgres.php @@ -8,6 +8,12 @@ use Model\Link; const VERSION = 40; +function version_41($pdo) +{ + $rq = $pdo->prepare('INSERT INTO settings VALUES (?, ?)'); + $rq->execute(array('integration_gravatar', '0')); +} + function version_40($pdo) { $rq = $pdo->prepare('INSERT INTO settings VALUES (?, ?)'); diff --git a/app/Schema/Sqlite.php b/app/Schema/Sqlite.php index 3ad045e6..3683acb6 100644 --- a/app/Schema/Sqlite.php +++ b/app/Schema/Sqlite.php @@ -6,7 +6,13 @@ use Core\Security; use PDO; use Model\Link; -const VERSION = 58; +const VERSION = 59; + +function version_59($pdo) +{ + $rq = $pdo->prepare('INSERT INTO settings VALUES (?, ?)'); + $rq->execute(array('integration_gravatar', '0')); +} function version_58($pdo) { |