Skip to content

PG upgrade path: existing DBs that already ran original InitialPostgres need a forward genre migration #177

Description

@mforce

Known limitation recorded at merge of PR #173 (issue #169), from @codex P1 on head 044a612.

The genre schema (Genre + GameGenre/GenreMovie/GenreMusicAlbum + IX_Genres_OwnerId_Name) was folded into the FIRST
Postgres migration 20260528000000_InitialPostgres (owner decision: treat PG as never deployed — all existing deployments
are SQLite; no PG databases existed). This is correct for FRESH PG installs, but a PG database that already applied the
ORIGINAL InitialPostgres (pre-merge) would never re-run it and has no later genre migration, so it would keep the legacy
comma-separated genre columns and miss the relational schema → collection queries would fail post-upgrade.

Documented owner position at merge: no PG databases exist, so this path is not live. If a PG deployment is ever added
or discovered that pre-dates this change, add a forward migration to create the genre schema for the upgrade path.
Fast-follow / documented limitation; not a blocker.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions