diff options
author | Frédéric Guillot <fguillot@users.noreply.github.com> | 2014-05-03 22:24:03 -0400 |
---|---|---|
committer | Frédéric Guillot <fguillot@users.noreply.github.com> | 2014-05-03 22:24:03 -0400 |
commit | 560a12f0bd6347a335f8ed5201d6d9562d03d4bc (patch) | |
tree | 00510d25c1cf5e747573543fa88d44ef003b1c9a /schemas | |
parent | 9531e439cd99fb7dbcfb039f422f1d1ba414ec30 (diff) |
Add Google authentication
Diffstat (limited to 'schemas')
-rw-r--r-- | schemas/mysql.php | 7 | ||||
-rw-r--r-- | schemas/sqlite.php | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/schemas/mysql.php b/schemas/mysql.php index e688be8d..e7ead3f1 100644 --- a/schemas/mysql.php +++ b/schemas/mysql.php @@ -2,6 +2,13 @@ namespace Schema; +function version_14($pdo) +{ + $pdo->exec("ALTER TABLE users ADD COLUMN name VARCHAR(255)"); + $pdo->exec("ALTER TABLE users ADD COLUMN email VARCHAR(255)"); + $pdo->exec("ALTER TABLE users ADD COLUMN google_id VARCHAR(30)"); +} + function version_13($pdo) { $pdo->exec("ALTER TABLE users ADD COLUMN is_ldap_user TINYINT(1) DEFAULT 0"); diff --git a/schemas/sqlite.php b/schemas/sqlite.php index c2ac29c1..d3e4ce9b 100644 --- a/schemas/sqlite.php +++ b/schemas/sqlite.php @@ -2,6 +2,13 @@ namespace Schema; +function version_14($pdo) +{ + $pdo->exec("ALTER TABLE users ADD COLUMN name TEXT"); + $pdo->exec("ALTER TABLE users ADD COLUMN email TEXT"); + $pdo->exec("ALTER TABLE users ADD COLUMN google_id TEXT"); +} + function version_13($pdo) { $pdo->exec("ALTER TABLE users ADD COLUMN is_ldap_user INTEGER DEFAULT 0"); |