diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-05-18 12:56:32 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-05-18 12:56:32 -0400 |
commit | 46eafe105fe97b7be8b8a25a72b491bef03fea8c (patch) | |
tree | c499a668b23ca6edf4cd158e4f8dc57d6b31edd6 /app/Schema | |
parent | ac6e7bdfbf3479c655d7b883e50b6b01aa08784d (diff) |
Add ical export for users
Diffstat (limited to 'app/Schema')
-rw-r--r-- | app/Schema/Mysql.php | 7 | ||||
-rw-r--r-- | app/Schema/Postgres.php | 7 | ||||
-rw-r--r-- | app/Schema/Sqlite.php | 7 |
3 files changed, 18 insertions, 3 deletions
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php index 7195c7fe..593cca80 100644 --- a/app/Schema/Mysql.php +++ b/app/Schema/Mysql.php @@ -6,7 +6,12 @@ use PDO; use Core\Security; use Model\Link; -const VERSION = 69; +const VERSION = 70; + +function version_70($pdo) +{ + $pdo->exec("ALTER TABLE users ADD COLUMN token VARCHAR(255) DEFAULT ''"); +} function version_69($pdo) { diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php index 27efe8c4..4ec6965f 100644 --- a/app/Schema/Postgres.php +++ b/app/Schema/Postgres.php @@ -6,7 +6,12 @@ use PDO; use Core\Security; use Model\Link; -const VERSION = 50; +const VERSION = 51; + +function version_51($pdo) +{ + $pdo->exec("ALTER TABLE users ADD COLUMN token VARCHAR(255) DEFAULT ''"); +} function version_50($pdo) { diff --git a/app/Schema/Sqlite.php b/app/Schema/Sqlite.php index 7af7bbe8..84892aaf 100644 --- a/app/Schema/Sqlite.php +++ b/app/Schema/Sqlite.php @@ -6,7 +6,12 @@ use Core\Security; use PDO; use Model\Link; -const VERSION = 68; +const VERSION = 69; + +function version_69($pdo) +{ + $pdo->exec("ALTER TABLE users ADD COLUMN token TEXT DEFAULT ''"); +} function version_68($pdo) { |