Skip to content

Fix upgrading MySQL database from version 2171 to 2192#409

Merged
frb121 merged 2 commits intomasterfrom
dev/fbergkemper/master/update-db-schema-fix-mysql
Feb 10, 2020
Merged

Fix upgrading MySQL database from version 2171 to 2192#409
frb121 merged 2 commits intomasterfrom
dev/fbergkemper/master/update-db-schema-fix-mysql

Conversation

@frb121
Copy link
Contributor

@frb121 frb121 commented Feb 6, 2020

No description provided.

@frb121 frb121 requested review from arogge and sduehr February 6, 2020 13:12
"CREATE INDEX IF NOT EXISTS ..." does not work on MySQL.

Instead "ALTER TABLE Job ADD INDEX (JobTDate);" is compatible to
MariaDB and MySQL. This also works if an index is already in place.

Unfortunately we could end up having multiple indexes on
JobTDate this way, so manually cleaning up could be required.

Perform also a key distribution analysis on the PathVisibility
table after index drop.

Fixes #1176: Upgrade 18.2.5 to 19.2.5 failed ...
@frb121 frb121 force-pushed the dev/fbergkemper/master/update-db-schema-fix-mysql branch from 17b9044 to 69ade74 Compare February 10, 2020 17:02
Copy link
Member

@sduehr sduehr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, can be merged.

@frb121 frb121 merged commit 29ac88a into master Feb 10, 2020
@frb121 frb121 deleted the dev/fbergkemper/master/update-db-schema-fix-mysql branch February 10, 2020 17:05
@bareos bareos locked as resolved and limited conversation to collaborators Feb 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants