Story #12690: As an administrator I can set up the conference base data
Adjust Models to enable editing
Currently we're using the @Id annotation in the models Circular, IntermissionType, Location, Room and SessionType to mark the title/subject as identity.
This leads to the fact that those can't be edited anymore (see #13324)
The Id annotations should be removed so that FLOW3 introduces the flow3_persistence_identifier
Note: To be able to migrate the database on the live server, a doctrine migration must be provided.
Updated by Bastian Waidelich over 10 years ago
- File Version20110621193235.php Version20110621193235.php added
- Status changed from New to Under Review
- Assignee changed from Bastian Waidelich to Karsten Dambekalns
By changing the models as described above and calling
flow3_dev flow3:doctrine:migrationdiff I get following exception:
Uncaught Exception in FLOW3 SQLSTATE[HY000]: General error: 1005 Can't create table 't3con11.#sql-3d4_ba' (errno: 150) thrown in file C:\Users\bwaidelich\_HTDOCS\t3con11\Packages\Framework\FLOW3\Resources\PHP\Doctrine\DBAL\Connection.php in line 577
Doctrine creates a migration anyways (see attachment) but calling
flow3:doctrine:update throws a similar exception:
Uncaught Exception in FLOW3 SQLSTATE[HY000]: General error: 1005 Can't create table 't3con11.#sql-3d4_ca' (errno: 150) thrown in file C:\Users\bwaidelich\_HTDOCS\t3con11\Packages Framework\FLOW3\Resources\PHP\Doctrine\DBAL\Connection.php in line 577