Skip to content

fix(authserver): prod and dev-mysql Flyway targets skip MySQL V7, V9 and V11 #352

Backlog

Description

@dfcoffin

Found while working on #345 (#350). Pre-existing; to be fixed before deployment (#298).

Problem

Two AS profiles cap the MySQL migrations with spring.flyway.target:

Profile target Migrations that never run
prod (application-prod.yml) 2.0.0 V7 create_handoff_nonces, V9 create_admin_users_and_webauthn, V11 cascade_client_deletes
dev-mysql (application-dev-mysql.yml) 7.0.0 V9, V11

The caps were set when V3 onwards was seed data that did not apply (#123). Since then:

The tests apply every migration (no target), so they do not show this. MySQL V3–V6 are .disabled (#145), so the cap no longer guards anything.

Fix

  • Remove target from both profiles (or set it to the latest version), so every MySQL migration runs.
  • Start the AS on a fresh MySQL database under prod and dev-mysql settings and check that it starts and that flyway_schema_history ends at the latest version.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions