Skip to content

Commit

Permalink
add default value
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Jul 25, 2024
1 parent 7e91936 commit 7443ede
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ def upgrade() -> None:
"cache_entries",
sa.Column("created_at", sa.DateTime, default=cacholote.utils.utcnow),
)
op.execute(f"UPDATE cache_entries SET created_at='{cacholote.utils.utcnow()!s}'")

op.alter_column("cache_entries", "timestamp", new_column_name="updated_at")


Expand Down

0 comments on commit 7443ede

Please sign in to comment.