discourse/lib/migration
Alan Guo Xiang Tan 02b8aa6096
DEV: Protection for migrations that creates index concurrently take 2 (#31792)
This is a follow up to 6820622467.

This commit addresses migrations that uses `remove_index` with the
`if_exists: true` option to drop an existing index before creating an
index using the `concurrently` option.

This commit also reruns two migration which may have caused indexes to
be left in an `invalid` state.

### Reviewers Note

Plugin tests are failing due to
https://github.com/discourse/discourse-translator/pull/251
2025-03-17 08:25:30 +08:00
..
base_dropper.rb DEV: Remove logical OR assignment of constants (#29201) 2024-10-16 10:09:07 +08:00
column_dropper.rb DEV: Raise an exception if trying to set a readonly column with default (#27416) 2024-09-02 10:09:40 +01:00
helpers.rb DEV: Introduce Migration::Helpers for new-site detection (#20934) 2023-04-03 11:46:39 +01:00
safe_migrate.rb DEV: Protection for migrations that creates index concurrently take 2 (#31792) 2025-03-17 08:25:30 +08:00
table_dropper.rb DEV: Correct ambiguous name (#21189) 2023-04-20 11:28:08 -05:00