summaryrefslogtreecommitdiff
path: root/app/Schema/Mysql.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-11-02 15:41:58 -0700
committerFrederic Guillot <fred@kanboard.net>2017-11-02 15:41:58 -0700
commit648dc6bcfbdd44947ec58e2f3662c1cc3844d782 (patch)
treed122630decf0bf4a7a199798835481592424a3b0 /app/Schema/Mysql.php
parent44ae87ac0e9bb37ca6d2b305d410758ff71b42c6 (diff)
Add predefined templates for task descriptions
Diffstat (limited to 'app/Schema/Mysql.php')
-rw-r--r--app/Schema/Mysql.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php
index ca284f47..5709b86d 100644
--- a/app/Schema/Mysql.php
+++ b/app/Schema/Mysql.php
@@ -8,7 +8,19 @@ use PDO;
use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
-const VERSION = 125;
+const VERSION = 126;
+
+function version_126(PDO $pdo)
+{
+ $pdo->exec('CREATE TABLE predefined_task_descriptions (
+ id INT NOT NULL AUTO_INCREMENT,
+ project_id INT NOT NULL,
+ title TEXT NOT NULL,
+ description TEXT NOT NULL,
+ FOREIGN KEY(project_id) REFERENCES projects(id) ON DELETE CASCADE,
+ PRIMARY KEY(id)
+ ) ENGINE=InnoDB CHARSET=utf8');
+}
function version_125(PDO $pdo)
{