Issue Bug Closed

#92959ConnectionMigrator must ignore unmapped tables on non-default connection

Stephan Großberndt 11/30/20, 17:29 updated 10/04/22, 14:12

Description

When comparing the current database state with the wanted state, e.g. in the ‘Upgrade Wizard’ of the Install Tool, TYPO3 currently iterates all tables of non-default connections and fetches their detail information. Later on all information for tables which are not mapped to that connection in the ‘TableMapping’ are discarded.

This is
  • slow: fetching info of details of 100 tables when only 2 mapped tables need to be compared
  • error-prone: if a table in the database of a non-default connection contains data types doctrine/dbal cannot handle (e.g. xml), the SchemaDiff will fail completely

Reviews 2