fix: migrations
This commit is contained in:
parent
120e744993
commit
51ea172bc2
1 changed files with 0 additions and 7 deletions
|
|
@ -142,10 +142,3 @@ async def m007_add_created_at_timestamp(db):
|
||||||
"ALTER TABLE withdraw.withdraw_link "
|
"ALTER TABLE withdraw.withdraw_link "
|
||||||
f"ADD COLUMN created_at TIMESTAMP DEFAULT {db.timestamp_column_default}"
|
f"ADD COLUMN created_at TIMESTAMP DEFAULT {db.timestamp_column_default}"
|
||||||
)
|
)
|
||||||
# Set created_at to current time for all existing rows
|
|
||||||
await db.execute(
|
|
||||||
f"""
|
|
||||||
UPDATE withdraw.withdraw_link SET created_at = {db.timestamp_placeholder}
|
|
||||||
""",
|
|
||||||
(int(time()),),
|
|
||||||
)
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue