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.
Migrated issue, originally created by taffit (@taffit)
If you provide a schema to the op.rename_table(<old_name>, <new_name>, schema=<schema>)-method, it is translated to EXEC sp_rename '<schema>.<old_name>', '<schema>.<new_name>' which however a) breaks the alembic migration and b) would result in a table name <schema>.<schema>.<new_name>.
If you take a look at the documentation of sp_renamehere you will read the following:
... new_name must be a one-part name ...
In the file alembic/ddl/mssql.py, around line 230, change the following