summaryrefslogtreecommitdiff
path: root/app/Schema/Sqlite.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-02 21:58:00 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-02 21:58:00 -0400
commit264b5526035be61c043a5314baa0e07e8f3f8216 (patch)
tree0bf890e1b9f1a9f9fa8948978902b829a8f4e5e5 /app/Schema/Sqlite.php
parent370361330aeb37f02e87ab78ae38521da774c957 (diff)
Add custom filters (refactoring of pull-request #1312)
Diffstat (limited to 'app/Schema/Sqlite.php')
-rw-r--r--app/Schema/Sqlite.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/app/Schema/Sqlite.php b/app/Schema/Sqlite.php
index 26ad96c7..064d0f3c 100644
--- a/app/Schema/Sqlite.php
+++ b/app/Schema/Sqlite.php
@@ -6,7 +6,21 @@ use Core\Security;
use PDO;
use Model\Link;
-const VERSION = 83;
+const VERSION = 84;
+
+function version_84($pdo)
+{
+ $pdo->exec("
+ CREATE TABLE custom_filters (
+ id INTEGER PRIMARY KEY,
+ filter TEXT NOT NULL,
+ project_id INTEGER NOT NULL,
+ user_id INTEGER NOT NULL,
+ name TEXT NOT NULL,
+ is_shared INTEGER DEFAULT 0
+ )
+ ");
+}
function version_83($pdo)
{