fix: set last_acessed to current timestamp
This commit is contained in:
parent
5fac3b40b9
commit
43290af1b2
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ def upgrade() -> None:
|
|||
sa.Column('last_accessed', sa.DateTime(timezone=True), nullable=True)
|
||||
)
|
||||
# Optionally initialize with created_at values for existing records
|
||||
op.execute("UPDATE data SET last_accessed = created_at")
|
||||
op.execute("UPDATE data SET last_accessed = CURRENT_TIMESTAMP")
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue