Repair the issue due date migration for Postgresql

This commit is contained in:
Simon Holywell 2012-04-26 16:29:26 +01:00
parent a608d7ea0a
commit c3bbddb1ff

View File

@ -29,7 +29,7 @@ function IDF_Migrations_25IssueDueDate_up($params=null)
{ {
$table = Pluf::factory('IDF_Issue')->getSqlTable(); $table = Pluf::factory('IDF_Issue')->getSqlTable();
$sql = array(); $sql = array();
$sql['PostgreSQL'] = 'ALTER TABLE '.$table.' ADD COLUMN "due_dtime" DATETIME'; $sql['PostgreSQL'] = 'ALTER TABLE '.$table.' ADD COLUMN "due_dtime" TIMESTAMP';
$sql['MySQL'] = 'ALTER TABLE '.$table.' ADD COLUMN `due_dtime` DATETIME'; $sql['MySQL'] = 'ALTER TABLE '.$table.' ADD COLUMN `due_dtime` DATETIME';
$db = Pluf::db(); $db = Pluf::db();
$engine = Pluf::f('db_engine'); $engine = Pluf::f('db_engine');