You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Postgres allows renaming indexes, and while it is impossible to use inside the schema diffing algorithm (as indexes are compared by name) it can still be used inside conditional migrations.
Adding an Operations::RenameIndex (and respective rename_index in the Migrator) and handling it with execute('ALTER INDEX name RENAME TO new_name') in the Reader should do it.
The text was updated successfully, but these errors were encountered:
Postgres allows renaming indexes, and while it is impossible to use inside the schema diffing algorithm (as indexes are compared by name) it can still be used inside conditional migrations.
Adding an
Operations::RenameIndex
(and respectiverename_index
in theMigrator
) and handling it withexecute('ALTER INDEX name RENAME TO new_name')
in theReader
should do it.The text was updated successfully, but these errors were encountered: