diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-04-11 16:26:45 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-04-11 16:26:45 -0400 |
commit | d3727e92a6000a01fb962e559f8e6b936def1fb9 (patch) | |
tree | 23a12c7c7db5644f0a938eb0d4bed2c81d811a61 /app/Schema | |
parent | 52bc2efc65af690b075d58dcff23eac97d1a0495 (diff) |
Add category description (merge and modify pull-request #692)
Diffstat (limited to 'app/Schema')
-rw-r--r-- | app/Schema/Mysql.php | 7 | ||||
-rw-r--r-- | app/Schema/Postgres.php | 7 | ||||
-rw-r--r-- | app/Schema/Sqlite.php | 7 |
3 files changed, 18 insertions, 3 deletions
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php index 91e744a4..c2bfc97a 100644 --- a/app/Schema/Mysql.php +++ b/app/Schema/Mysql.php @@ -6,7 +6,12 @@ use PDO; use Core\Security; use Model\Link; -const VERSION = 62; +const VERSION = 63; + +function version_63($pdo) +{ + $pdo->exec('ALTER TABLE project_has_categories ADD COLUMN description TEXT'); +} function version_62($pdo) { diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php index 0c4c4829..80f29219 100644 --- a/app/Schema/Postgres.php +++ b/app/Schema/Postgres.php @@ -6,7 +6,12 @@ use PDO; use Core\Security; use Model\Link; -const VERSION = 43; +const VERSION = 44; + +function version_44($pdo) +{ + $pdo->exec('ALTER TABLE project_has_categories ADD COLUMN description TEXT'); +} function version_43($pdo) { diff --git a/app/Schema/Sqlite.php b/app/Schema/Sqlite.php index 4ea1f875..d244cd89 100644 --- a/app/Schema/Sqlite.php +++ b/app/Schema/Sqlite.php @@ -6,7 +6,12 @@ use Core\Security; use PDO; use Model\Link; -const VERSION = 61; +const VERSION = 62; + +function version_62($pdo) +{ + $pdo->exec('ALTER TABLE project_has_categories ADD COLUMN description TEXT'); +} function version_61($pdo) { |