Fix postgres issues
This commit is contained in:
parent
05fb655347
commit
fe3504d8a2
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -14,6 +14,20 @@ use Model\Swimlane;
|
|||
|
||||
class TaskFilterTest extends Base
|
||||
{
|
||||
public function testGetGanttbar()
|
||||
{
|
||||
$dp = new DateParser($this->container);
|
||||
$p = new Project($this->container);
|
||||
$tc = new TaskCreation($this->container);
|
||||
$tf = new TaskFilter($this->container);
|
||||
|
||||
$this->assertEquals(1, $p->create(array('name' => 'test')));
|
||||
$this->assertNotFalse($tc->create(array('project_id' => 1, 'title' => 'task1')));
|
||||
|
||||
$this->assertNotEmpty($tf->search('status:open')->toGanttBars());
|
||||
$this->assertNotEmpty($p->getGanttBars(array(1)));
|
||||
}
|
||||
|
||||
public function testIcalEventsWithCreatorAndDueDate()
|
||||
{
|
||||
$dp = new DateParser($this->container);
|
||||
|
|
|
|||
Loading…
Reference in New Issue