I've added a column
registered_on = db.Column(db.DateTime, nullable=False)
to my users
table. The migration which was automatically created is
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
...
op.add_column('users', sa.Column('registered_on', sa.DateTime(), nullable=False))
...
When I execute it, I got an exception about an invalid value 0000-00-00 00:00:00
(or so).
How should I adjust the migration script to not have this problem?
(In this situation, filling in a dummy value would probably have been the best)