diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-10-02 21:58:00 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-10-02 21:58:00 -0400 |
commit | 264b5526035be61c043a5314baa0e07e8f3f8216 (patch) | |
tree | 0bf890e1b9f1a9f9fa8948978902b829a8f4e5e5 /app/Schema/Postgres.php | |
parent | 370361330aeb37f02e87ab78ae38521da774c957 (diff) |
Add custom filters (refactoring of pull-request #1312)
Diffstat (limited to 'app/Schema/Postgres.php')
-rw-r--r-- | app/Schema/Postgres.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php index 695d8f1f..f7263e75 100644 --- a/app/Schema/Postgres.php +++ b/app/Schema/Postgres.php @@ -6,7 +6,21 @@ use PDO; use Core\Security; use Model\Link; -const VERSION = 67; +const VERSION = 68; + +function version_68($pdo) +{ + $pdo->exec(" + CREATE TABLE custom_filters ( + id SERIAL PRIMARY KEY, + filter VARCHAR(100) NOT NULL, + project_id INTEGER NOT NULL, + user_id INTEGER NOT NULL, + name VARCHAR(100) NOT NULL, + is_shared BOOLEAN DEFAULT '0' + ) + "); +} function version_67($pdo) { |