From c46fa5d69ce9cf095f845a1b6e6e0ca15479da20 Mon Sep 17 00:00:00 2001 From: kevgliss Date: Fri, 3 Mar 2017 15:16:25 -0800 Subject: [PATCH] Ensures the rotation has a value during migration. (#707) --- lemur/migrations/versions/131ec6accff5_.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemur/migrations/versions/131ec6accff5_.py b/lemur/migrations/versions/131ec6accff5_.py index c2894e67e1..e217333076 100644 --- a/lemur/migrations/versions/131ec6accff5_.py +++ b/lemur/migrations/versions/131ec6accff5_.py @@ -16,7 +16,7 @@ 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 ###