summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-08-28 22:17:39 -0400
committerFrederic Guillot <fred@kanboard.net>2015-08-28 22:17:39 -0400
commitfe3504d8a2c7739df74735e54109403c3dd75619 (patch)
tree084d6eeed779f015f5e8a3f6320bbf544edf767b /app
parent05fb6553471025af8bb090cd812651816c1c59fc (diff)
Fix postgres issues
Diffstat (limited to 'app')
-rw-r--r--app/Model/TaskFinder.php1
-rw-r--r--app/Schema/Mysql.php4
-rw-r--r--app/Schema/Postgres.php4
3 files changed, 5 insertions, 4 deletions
diff --git a/app/Model/TaskFinder.php b/app/Model/TaskFinder.php
index 15274707..3e76041c 100644
--- a/app/Model/TaskFinder.php
+++ b/app/Model/TaskFinder.php
@@ -127,6 +127,7 @@ class TaskFinder extends Base
Category::TABLE.'.name AS category_name',
Category::TABLE.'.description AS category_description',
Board::TABLE.'.title AS column_name',
+ Board::TABLE.'.position AS column_position',
Swimlane::TABLE.'.name AS swimlane_name',
Project::TABLE.'.default_swimlane',
Project::TABLE.'.name AS project_name'
diff --git a/app/Schema/Mysql.php b/app/Schema/Mysql.php
index af7c3c87..b1ac0ab9 100644
--- a/app/Schema/Mysql.php
+++ b/app/Schema/Mysql.php
@@ -15,8 +15,8 @@ function version_85($pdo)
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 ''");
+ $pdo->exec("ALTER TABLE projects ADD COLUMN start_date VARCHAR(10) DEFAULT ''");
+ $pdo->exec("ALTER TABLE projects ADD COLUMN end_date VARCHAR(10) DEFAULT ''");
}
function version_83($pdo)
diff --git a/app/Schema/Postgres.php b/app/Schema/Postgres.php
index 03f71de0..9477b416 100644
--- a/app/Schema/Postgres.php
+++ b/app/Schema/Postgres.php
@@ -15,8 +15,8 @@ function version_65($pdo)
function version_64($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 ''");
+ $pdo->exec("ALTER TABLE projects ADD COLUMN start_date VARCHAR(10) DEFAULT ''");
+ $pdo->exec("ALTER TABLE projects ADD COLUMN end_date VARCHAR(10) DEFAULT ''");
}
function version_63($pdo)