Skip to content

Commit

Permalink
In db migration, provide default value for existing rows. (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan authored Jul 11, 2023
1 parent c523218 commit 201f9ea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@

def upgrade():
op.add_column(
Session.__tablename__, sa.Column("state", JSONVariant, nullable=False)
Session.__tablename__,
sa.Column("state", JSONVariant, nullable=False, server_default="{}"),
)


Expand Down

0 comments on commit 201f9ea

Please sign in to comment.