summaryrefslogtreecommitdiff
path: root/app/Schema/Sqlite.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-02-19 23:21:37 -0500
committerFrederic Guillot <fred@kanboard.net>2016-02-19 23:21:37 -0500
commit6d09bfc96e4b5dcf3dd95212d2f40481f95a4fc0 (patch)
tree51f435a7eef6ed6f90218ea4c5cb7fae25f4def9 /app/Schema/Sqlite.php
parentde4519fa2c45ca96d4bf0b9ce288cad600d09854 (diff)
Add migration to rename old event name
Diffstat (limited to 'app/Schema/Sqlite.php')
-rw-r--r--app/Schema/Sqlite.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/Schema/Sqlite.php b/app/Schema/Sqlite.php
index e88f621f..8bcad291 100644
--- a/app/Schema/Sqlite.php
+++ b/app/Schema/Sqlite.php
@@ -6,7 +6,12 @@ use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
use PDO;
-const VERSION = 98;
+const VERSION = 99;
+
+function version_99(PDO $pdo)
+{
+ $pdo->exec("UPDATE project_activities SET event_name='task.file.create' WHERE event_name='file.create'");
+}
function version_98(PDO $pdo)
{