From 06d0b7048ebcdfdf6e24eec3ac7dc8fb0327dd6f Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 30 Jun 2014 21:52:02 -0300 Subject: Merge pull-request: Github authentication #162 --- app/Schema/Mysql.php | 7 ++++++- app/Schema/Sqlite.php | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'app/Schema') diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php index 7ff130cf..a30b0989 100644 --- a/app/Schema/Mysql.php +++ b/app/Schema/Mysql.php @@ -3,7 +3,12 @@ namespace Schema; use Core\Security; -const VERSION = 19; +const VERSION = 20; + +function version_20($pdo) +{ + $pdo->exec("ALTER TABLE users ADD COLUMN github_id VARCHAR(30)"); +} function version_19($pdo) { diff --git a/app/Schema/Sqlite.php b/app/Schema/Sqlite.php index 8f8e498a..6ea0541c 100644 --- a/app/Schema/Sqlite.php +++ b/app/Schema/Sqlite.php @@ -3,7 +3,12 @@ namespace Schema; use Core\Security; -const VERSION = 19; +const VERSION = 20; + +function version_20($pdo) +{ + $pdo->exec("ALTER TABLE users ADD COLUMN github_id TEXT"); +} function version_19($pdo) { -- cgit v1.2.3