Skip to content

Commit

Permalink
Default value for Rule.create_on in migration is "any"
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirFilonov committed Dec 10, 2024
1 parent 17196ec commit e7f025c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
def upgrade() -> None:
with op.batch_alter_table("rule", schema=None) as batch_op:
batch_op.add_column(
sa.Column("create_on", sqlmodel.sql.sqltypes.AutoString(), nullable=False)
sa.Column("create_on", sqlmodel.sql.sqltypes.AutoString(), nullable=False, default="any", server_default="any")
)

# ### end Alembic commands ###
Expand Down

0 comments on commit e7f025c

Please sign in to comment.