From 01f9ee3410bb4f6878033b353f5a0731397632d0 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 30 Mar 2015 21:27:49 -0400 Subject: Add Gravatar integration --- app/Schema/Mysql.php | 8 +++++++- app/Schema/Postgres.php | 6 ++++++ app/Schema/Sqlite.php | 8 +++++++- 3 files changed, 20 insertions(+), 2 deletions(-) (limited to 'app/Schema') 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) { -- cgit v1.2.3