summaryrefslogtreecommitdiff
path: root/app/Schema/Sqlite.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-02-28 19:54:32 -0500
committerFrederic Guillot <fred@kanboard.net>2015-02-28 19:54:32 -0500
commitda425e4187e5e8e7feb9783c9d75bcaa9fa0c7ec (patch)
tree53b6d054a410c24078171ad7178a6c4ce505f434 /app/Schema/Sqlite.php
parentbb61b409a3577c99ca93c8b2b283437cf2a24040 (diff)
Rename subtasks and files tables
Diffstat (limited to 'app/Schema/Sqlite.php')
-rw-r--r--app/Schema/Sqlite.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/Schema/Sqlite.php b/app/Schema/Sqlite.php
index eefa0ae1..6fc2d07e 100644
--- a/app/Schema/Sqlite.php
+++ b/app/Schema/Sqlite.php
@@ -6,7 +6,13 @@ use Core\Security;
use PDO;
use Model\Link;
-const VERSION = 46;
+const VERSION = 47;
+
+function version_47($pdo)
+{
+ $pdo->exec('ALTER TABLE task_has_files RENAME TO files');
+ $pdo->exec('ALTER TABLE task_has_subtasks RENAME TO subtasks');
+}
function version_46($pdo)
{