sqlite doesn't like complex changes (alter table) to happen
inside a transaction that has already done other things.
And really, each migration should say "I'm done" and commit
its changes.
This is not the full story, but it's the core of it.
Specifially the migration framework should probably do a
rollback "just in case" after each migration.
file_keynames.update().where(file_keynames.c.name == 'ogg').
values(name='webm_audio')
)
+ db_conn.commit()
@RegisterMigration(2, MIGRATIONS)
col = Column('wants_comment_notification', Boolean,
default=True, nullable=True)
col.create(users, populate_defaults=True)
+ db_conn.commit()