fix: set last_acessed to current timestamp

This commit is contained in:
chinu0609 2025-11-19 21:00:16 +05:30
parent 5fac3b40b9
commit 43290af1b2

View file

@ -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: