Skip to content

DB Schema Migration: Ignore duplicate column errors#2514

Merged
daschuer merged 1 commit into
mixxxdj:masterfrom
uklotzde:schemamigration
Feb 23, 2020
Merged

DB Schema Migration: Ignore duplicate column errors#2514
daschuer merged 1 commit into
mixxxdj:masterfrom
uklotzde:schemamigration

Conversation

@uklotzde
Copy link
Copy Markdown
Contributor

During development new columns may be added in advance before the final version number for the schema migration is known. IMO we can safely ignore this class of errors during schema migration.

It helps testing PRs that involve a schema migration. The only manual intervention that still might be needed is lowering mixxx.schema.version from time to time to apply all migrations that have been merged into master in the mean time.

@daschuer
Copy link
Copy Markdown
Member

Makes sense. Thank you. LGTM.

@daschuer daschuer merged commit 6352491 into mixxxdj:master Feb 23, 2020
@uklotzde
Copy link
Copy Markdown
Contributor Author

This will allow me to add a new column coverart_digest BLOB for the new cover art image hashing soon. The column definition is already fixed, no matter when it finally gets merged. No intermediate step with stripped 64-bit hash values, but the full SHA-256 digest that allows to display cover images in the aoide view. Backwards compatible!

@uklotzde uklotzde deleted the schemamigration branch February 24, 2020 22:42
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.

2 participants