Skip to content

Add --migration-table-name flag to migrate command#152

Open
knwoop wants to merge 1 commit intocloudspannerecosystem:masterfrom
knwoop:feature/add-migration-table-name-flag
Open

Add --migration-table-name flag to migrate command#152
knwoop wants to merge 1 commit intocloudspannerecosystem:masterfrom
knwoop:feature/add-migration-table-name-flag

Conversation

@knwoop
Copy link
Copy Markdown
Collaborator

@knwoop knwoop commented Feb 6, 2026

WHAT

Add --migration-table-name persistent flag to the migrate command that allows users to specify a custom migration tracking table name.

  • Flag: --migration-table-name (default: SchemaMigrations)
  • Applies to all migrate subcommands: up, version, set
  • Added unit test and documentation

WHY

This enables running multiple migration systems in a single database. For example:

  • Schema migrations → SchemaMigrations (default)
  • Data/operational migrations → OperationalMigrations (custom)

This is useful for teams that want to separate DDL schema changes from DML data migrations while using the same tool.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant