Getting The object 'DF__tab_col_n__53BC6B19' is dependent on column 'col_name'.DB-Lib error
when dropping column
#1183
Replies: 3 comments 6 replies
-
Figured in my the col was a FK and i was using drop_constraint explicitly for it and then also i applied |
Beta Was this translation helpful? Give feedback.
-
Is it possible to have these flags in alter_column method when i alter a column i am gettng this error now |
Beta Was this translation helpful? Give feedback.
-
this error suggest an issue in alembic, so maybe the "@const_name" part needs escaping? Lines 298 to 320 in df26520 there are also other similar looking queries in mssql that may have the same issue. @indiVar0508 what is the table and contraint name? @gordthompson do you know if there is a nicer way of composing that exec? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to drop a column from mssql DB, which seems to have implicit default constraint created on it?
i have scenerio ( testing scenerio) where we are upgrading and downgrading DB for a performance usecase, so everytime DB upgrades it comes up with different constraint name, and when we downgrade i am getting this error.
on looking into code i found that drop_column provides a flag for
mssql_drop_default
to drop default constraints but when i use it am getting this error,can you help me with resolution ?
I am using this MSSQL DB container
thanks!
Beta Was this translation helpful? Give feedback.
All reactions