summaryrefslogtreecommitdiff
path: root/app/Schema
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-06-03 17:31:32 -0400
committerFrederic Guillot <fred@kanboard.net>2017-06-03 17:31:32 -0400
commitdd8d7ef49d522a15dbf0d04f033f676580f30ad7 (patch)
treee82070f0831338f712a9312b72dc5edbd0c2a780 /app/Schema
parent9668723af4f9ad633d9c9131fbdceb47fa326d9e (diff)
Add configurable list of predefined subjects when sending a task by email
Diffstat (limited to 'app/Schema')
-rw-r--r--app/Schema/Mysql.php7
-rw-r--r--app/Schema/Postgres.php7
-rw-r--r--app/Schema/Sqlite.php7
3 files changed, 18 insertions, 3 deletions
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php
index 782338d4..20ef0080 100644
--- a/app/Schema/Mysql.php
+++ b/app/Schema/Mysql.php
@@ -8,7 +8,12 @@ use PDO;
use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
-const VERSION = 123;
+const VERSION = 124;
+
+function version_124(PDO $pdo)
+{
+ $pdo->exec('ALTER TABLE projects ADD COLUMN predefined_email_subjects TEXT');
+}
function version_123(PDO $pdo)
{
diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php
index e6096d74..a5b52b2b 100644
--- a/app/Schema/Postgres.php
+++ b/app/Schema/Postgres.php
@@ -8,7 +8,12 @@ use PDO;
use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
-const VERSION = 102;
+const VERSION = 103;
+
+function version_103(PDO $pdo)
+{
+ $pdo->exec('ALTER TABLE projects ADD COLUMN predefined_email_subjects TEXT');
+}
function version_102(PDO $pdo)
{
diff --git a/app/Schema/Sqlite.php b/app/Schema/Sqlite.php
index ddcff861..3966d373 100644
--- a/app/Schema/Sqlite.php
+++ b/app/Schema/Sqlite.php
@@ -8,7 +8,12 @@ use Kanboard\Core\Security\Token;
use Kanboard\Core\Security\Role;
use PDO;
-const VERSION = 114;
+const VERSION = 115;
+
+function version_115(PDO $pdo)
+{
+ $pdo->exec('ALTER TABLE projects ADD COLUMN predefined_email_subjects TEXT');
+}
function version_114(PDO $pdo)
{