From 6b4786624be70c4c024b829407a7496eec361cbb Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 18 Aug 2015 21:39:43 -0400 Subject: Add start and end date for projects --- app/Schema/Mysql.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'app/Schema/Mysql.php') 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) { -- cgit v1.2.3