summaryrefslogtreecommitdiff
path: root/app/Schema/Mysql.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-08-18 21:39:43 -0400
committerFrederic Guillot <fred@kanboard.net>2015-08-18 21:39:43 -0400
commit6b4786624be70c4c024b829407a7496eec361cbb (patch)
tree51999c360f0f0c965b317ba31419118ef6ace8a3 /app/Schema/Mysql.php
parentb04cbc419b60df02ca59a9bbf87cd840614b09a4 (diff)
Add start and end date for projects
Diffstat (limited to 'app/Schema/Mysql.php')
-rw-r--r--app/Schema/Mysql.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php
index 9bd610bb..0a8ede18 100644
--- a/app/Schema/Mysql.php
+++ b/app/Schema/Mysql.php
@@ -6,7 +6,13 @@ use PDO;
use Core\Security;
use Model\Link;
-const VERSION = 83;
+const VERSION = 84;
+
+function version_84($pdo)
+{
+ $pdo->exec("ALTER TABLE projects ADD COLUMN start_date CHAR(10) DEFAULT ''");
+ $pdo->exec("ALTER TABLE projects ADD COLUMN end_date CHAR(10) DEFAULT ''");
+}
function version_83($pdo)
{