Review 13.4 Merged

95391[BUGFIX] Ignore tables that exist as views

Georg Ringer CR +2 V +2 Normal +134 −0 updated 08/23/26, 17:09

Commit message

A table name declared in `ext_tables.sql` or through TCA can exist as
a view on the connection it is mapped to, which is a common way to
make data of another system available to TYPO3.

TYPO3 does not own such an object. Altering or dropping it would act
on something the declaration does not describe, and creating it fails
outright, because a view already occupies the name.

Introspect the views of a connection and take them out of both the
current and the expected schema before the two are compared. Removing
them from both sides covers creating, altering, renaming and dropping
in one place, whichever side the name appears on.

This takes views out of the comparison and nothing else. Making what
is compared configurable in general is a separate matter.

Review

  • Code review CR +2 Done
    • Georg Ringer +2
  • Verified V +2 Done
    • Georg Ringer +2
    • core-ci +1 CI

Issues 2

Files 4

Review log 34

  1. Georg Ringer commented on patch set 1 08/23/26, 14:53

    Cherry Picked from branch 14.3.
  2. core-ci voted on patch set 1 V +1 08/23/26, 15:07 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/106997

  3. Georg Ringer voted on patch set 1 CR +2 V +2 08/23/26, 17:09

  4. Georg Ringer merged patch set 2 08/23/26, 17:09