Issue Bug Closed

#78771ConnectionMigrator does not handle renamed columns

Stefan Froemken 11/23/16, 10:37 updated 10/02/18, 11:03

Description

Hello Core-Team,

in our extension events2 I have renamed the column “events” to “event”, but “Database analyzer” can not detect that change. So currently I have to rename that column on my own on DB directly.

SchemaDiff class of Doctrine DBAL compares the arrays of addedColumns against removedColumns. If some Options are the same the SchemaDiff class moves that difference to renamedColumns and DELETEs the entries from addedColumns and removedColumns.

In ConnectionManager you only collect the values of addedColumns (Method: getNewFieldUpdateSuggestions) and removedColumns (Method: getUnusedFieldUpdateSuggestions), but there is no check against renamedColumns.

In the meanwhile I have 12 tables incl. some TYPO3 tables like sys_file_metadata and pages which could not be migrated because of renamedColumns.

Stefan

Reviews 2