From 8d1f4e47fcb34389adbd9dbbde3f0d57a9c9e2af Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 23 May 2018 20:55:03 +0100 Subject: [PATCH] Fix migration --- migrations/versions/13113e5710da_.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/versions/13113e5710da_.py b/migrations/versions/13113e5710da_.py index 5c40927..70eed06 100644 --- a/migrations/versions/13113e5710da_.py +++ b/migrations/versions/13113e5710da_.py @@ -18,7 +18,7 @@ depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### - op.add_column('package', sa.Column('created_at', sa.DateTime(), nullable=False)) + op.add_column('package', sa.Column('created_at', sa.DateTime(), nullable=False, server_default=sa.func.current_timestamp())) # ### end Alembic commands ###