Skip to content
Discussion options

You must be logged in to vote

well it's SQLite, so we dont exactly have ALTER COLUMN (it looks like ALTER TABLE/ADD/DROP COLUMN is coming along though). I guess how it could work is, do the ADD COLUMN including the default value of 1, then do an alembic batch migrate to remove the default (which will create a new table and copy the old one over). if this were any other database, then yes you could just drop the server default directly.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jvanasco
Comment options

Answer selected by jvanasco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants