Ensures the rotation has a value during migration. (#707)

This commit is contained in:
kevgliss 2017-03-03 15:16:25 -08:00 committed by GitHub
parent 310e1d4501
commit c46fa5d69c

View File

@ -16,7 +16,7 @@ import sqlalchemy as sa
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('certificates', sa.Column('rotation', sa.Boolean(), nullable=True))
op.add_column('certificates', sa.Column('rotation', sa.Boolean(), nullable=False, server_default=False))
op.add_column('endpoints', sa.Column('last_updated', sa.DateTime(), server_default=sa.text('now()'), nullable=False))
# ### end Alembic commands ###