-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add migration for unique indexes on favourite #580
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Migration went smoothly, no issues encountered since I stopped the messengers first.
Did you validate a db migration diff check? So there is no diff created between doctrine and the db? I ask this since you first created the migration and then the doctrine. Instead of the other way around. |
I just derped on pushing the changes. I did generate it through doctrine 😅 |
Migration is executed successfully here as well. I think you can merge it @BentiGorlich. |
I wanted to double check the instructions for this migration, as I was unaware of the need to stop messengers during certain migrations. Is that standard for a specific change? Are there instructions on how to do so? Obviously as you've already stated we'll want to make this known in release notes, and just letting peeps know in the matrix general is probably a good idea |
The reason for that is that you might wind up in a deadlock in postgres if you don't stop the messengers (happened to me once with a longer running migration). That is only for long running migrstions though. With this one specifically the migration might fail due to unique violations. Because it is so long running you might get newly created duplicates which then block the creation of the indeces |
Delete duplicate favorites and introduce 4 new indices.
Fixes #578