summaryrefslogtreecommitdiff
path: root/app/Schema/Sqlite.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-28 18:23:21 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-09-28 18:23:21 -0400
commit33f9cdbc976e0f97c3dd24658dc7d0097497c6d7 (patch)
tree3a5dc8ca9a6b3db268ba95aec357a2e5a8aad80e /app/Schema/Sqlite.php
parent03fa01ac7b036820ee232d893ec63241918c6012 (diff)
Add support for Github Issue Webhooks
Diffstat (limited to 'app/Schema/Sqlite.php')
-rw-r--r--app/Schema/Sqlite.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/app/Schema/Sqlite.php b/app/Schema/Sqlite.php
index 108c07f2..d9b3787d 100644
--- a/app/Schema/Sqlite.php
+++ b/app/Schema/Sqlite.php
@@ -4,7 +4,16 @@ namespace Schema;
use Core\Security;
-const VERSION = 27;
+const VERSION = 28;
+
+function version_28($pdo)
+{
+ $pdo->exec("ALTER TABLE tasks ADD COLUMN reference TEXT DEFAULT ''");
+ $pdo->exec("ALTER TABLE comments ADD COLUMN reference TEXT DEFAULT ''");
+
+ $pdo->exec('CREATE INDEX tasks_reference_idx ON tasks(reference)');
+ $pdo->exec('CREATE INDEX comments_reference_idx ON comments(reference)');
+}
function version_27($pdo)
{