Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.2.1
-
Fix Version/s: 1.2.2
-
Component/s: Migrations
-
Labels:None
Description
The problem is in this method:
protected function _createMigrationTable() { if ($this->_migrationTableCreated) { return true; } $this->_migrationTableCreated = true; try { $this->_connection->export->createTable($this->_migrationTableName, array('version' => array('type' => 'integer', 'size' => 11))); return true; } catch(Exception $e) { return false; } }
When migration_version table doesn't exist, everything works like it should. But subsequent migrations fail, because after failing at creating migration_version table every subsequent queries in that transaction fail.
It works flawlessly with MySQL, but fails with PostgreSQL.
Activity
Elnur Abdurrakhimov
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 1.2.2 [ 10047 ] |
Elnur Abdurrakhimov
made changes -
| Attachment | patch-migration-pgsql.diff [ 10377 ] |
Jonathan H. Wage
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Incomplete [ 4 ] |
Elnur Abdurrakhimov
made changes -
| Attachment | patch-doctrine-migration-pgsql-2.diff [ 10470 ] |
Elnur Abdurrakhimov
made changes -
| Resolution | Incomplete [ 4 ] | |
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
Jonathan H. Wage
made changes -
| Status | Reopened [ 4 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |