Skip to content
Snippets Groups Projects
Commit a5176d7c authored by kaiyou's avatar kaiyou
Browse files

Add a server default to the db migration

parent 91415c73
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ depends_on = None
def upgrade():
with op.batch_alter_table('user') as batch_op:
batch_op.add_column(sa.Column('contact', hiboo.models.JSONEncoded(), nullable=True))
batch_op.add_column(sa.Column('contact', hiboo.models.JSONEncoded(), nullable=True, server_default="{}"))
def downgrade():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment