]> cat aescling's git repositories - mastodon.git/commit
Fix old migration script not being able to run if it fails midway (#15361)
authorThibG <thib@sitedethib.com>
Fri, 18 Dec 2020 16:51:24 +0000 (17:51 +0100)
committerGitHub <noreply@github.com>
Fri, 18 Dec 2020 16:51:24 +0000 (17:51 +0100)
commit052249588b77fe3d8e29658076eb385f64511d6b
tree7b3ac3b0011c6f3856ca8402339ddd2154689699
parent1a028822442f10416f3782341307b4b759681b58
Fix old migration script not being able to run if it fails midway (#15361)

* Fix old migration script not being able to run if it fails midway

Improve the robustness of a migration script likely to fail because of database
corruption so it can run again once database corruptions are fixed.

* Display a specific error message in case of index corruption

Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
db/migrate/20200620164023_add_fixed_lowercase_index_to_accounts.rb