mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-14 20:55:15 +02:00
fix alembic version 46
This commit is contained in:
parent
84100380c4
commit
cc03900d63
1 changed files with 2 additions and 8 deletions
|
|
@ -60,11 +60,5 @@ def downgrade() -> None:
|
|||
"documents",
|
||||
sa.Column("last_edited_at", sa.TIMESTAMP(timezone=True), nullable=True),
|
||||
)
|
||||
# Optionally restore values from updated_at
|
||||
op.execute(
|
||||
text("""
|
||||
UPDATE documents
|
||||
SET last_edited_at = updated_at
|
||||
WHERE updated_at IS NOT NULL
|
||||
""")
|
||||
)
|
||||
# Note: We cannot restore the original last_edited_at values after downgrade
|
||||
# as that data is merged into updated_at
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue