migration: Make 'rename_indexes_constraints' a lib function.

This prep commit moves the 'rename_indexes_constraints'
function to 'lib/migrate' as we're going to re-use it for
the 'UserHotspot' to 'OnboardingStep' table rename operation.

In general, this function would be helpful in migrations
involving table rename operations, subject to the caution
mentioned in the function via comments.
This commit is contained in:
Prakhar Pratyush
2023-12-06 10:39:58 +05:30
committed by Tim Abbott
parent 777398fc82
commit 32a5c422e9
3 changed files with 92 additions and 92 deletions

View File

@@ -68,6 +68,7 @@ rules:
- zerver/migrations/0209_user_profile_no_empty_password.py
- zerver/migrations/0260_missed_message_addresses_from_redis_to_db.py
- zerver/migrations/0387_reupload_realmemoji_again.py
- zerver/migrations/0443_userpresence_new_table_schema.py
- pgroonga/migrations/0002_html_escape_subject.py
- id: html-format