render inline CHECK constraint for ADD COLUMN on sqlite #98
Labels
batch migrations
bug
Something isn't working
external SQLAlchemy issues
the issue is in SQLAlchemy, not here in alembic
Migrated issue, originally created by Márcio Moreira (@arqeco)
Friends,
I´ve tried without success to add a boolean column to a sqlite file.
File "C:\Python27\lib\site-packages\sqlalchemy\engine\default.py", line 331, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (OperationalError) near "CHECK": syntax error u'ALTER TABLE movimentos ADD CHECK (abc IN (0, 1))' ()
The only way it worked was changing
to
I am new to sqlalchemy and databases in general. Is it the create_constraint=False mandatory for Sqlite databases in alembic?
Greetings,
Márcio
The text was updated successfully, but these errors were encountered: