Skip to content

Alembic drop and create foreignkey on every migrate without any changes #1351

Discussion options

You must be logged in to vote

ok, looked better at the error and the the impl, not too familiar with mssql.

sqlalchemy default schema for mssql is dbo and that's interfering with the reflection of the columns.
the solution is to not set the schema in the tables if it's dbo. Only set the schema if a table is in another one

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@marcszy91
Comment options

@CaselIT
Comment options

Answer selected by marcszy91
@marcszy91
Comment options

@zzzeek
Comment options

@zzzeek
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants