We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrated issue, originally created by Marek Baczyński (@imbaczek)
DB: SQL Server 2008R2
SQLAlchemy==0.9.3
alembic==0.6.4dev
def upgrade(): ### commands auto generated by Alembic - please adjust! ### op.add_column('table', sa.Column('col3', sa.Boolean(name='ck_col3'), nullable=True)) ### end Alembic commands ### def downgrade(): ### commands auto generated by Alembic - please adjust! ### op.drop_column('table', 'col3', mssql_drop_check=True) ### end Alembic commands ###
when downgrading, alembic emits the following SQL
declare @const_name varchar(256) select @const_name = [name] from sys.check_constraints where parent_object_id = object_id('table') and col_name(parent_object_id, parent_column_id) = 'col3' -- expected exec('alter table [table] drop constraint [' + @const_name + ']') -- actually emitted exec('alter table table drop constraint ' + @const_name)
The text was updated successfully, but these errors were encountered:
Michael Bayer (@zzzeek) wrote:
.drop_column.mssql_drop_check
.drop_column.mssql_drop_default
→ efecc6c
Sorry, something went wrong.
Changes by Michael Bayer (@zzzeek):
No branches or pull requests
Migrated issue, originally created by Marek Baczyński (@imbaczek)
DB: SQL Server 2008R2
SQLAlchemy==0.9.3
alembic==0.6.4dev
when downgrading, alembic emits the following SQL
The text was updated successfully, but these errors were encountered: