mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-29 19:35:20 +02:00
chore: linting
This commit is contained in:
parent
e7c17c327c
commit
8fb5a7fb8f
10 changed files with 61 additions and 55 deletions
|
|
@ -103,7 +103,9 @@ def upgrade() -> None:
|
|||
|
||||
# 5. Drop deprecated columns from new_chat_threads
|
||||
op.execute("ALTER TABLE new_chat_threads DROP COLUMN IF EXISTS clone_pending")
|
||||
op.execute("ALTER TABLE new_chat_threads DROP COLUMN IF EXISTS public_share_enabled")
|
||||
op.execute(
|
||||
"ALTER TABLE new_chat_threads DROP COLUMN IF EXISTS public_share_enabled"
|
||||
)
|
||||
op.execute("ALTER TABLE new_chat_threads DROP COLUMN IF EXISTS public_share_token")
|
||||
|
||||
# 6. Add cloned_from_snapshot_id to new_chat_threads
|
||||
|
|
@ -129,7 +131,9 @@ def downgrade() -> None:
|
|||
|
||||
# 1. Drop cloned_from_snapshot_id column and index
|
||||
op.execute("DROP INDEX IF EXISTS ix_new_chat_threads_cloned_from_snapshot_id")
|
||||
op.execute("ALTER TABLE new_chat_threads DROP COLUMN IF EXISTS cloned_from_snapshot_id")
|
||||
op.execute(
|
||||
"ALTER TABLE new_chat_threads DROP COLUMN IF EXISTS cloned_from_snapshot_id"
|
||||
)
|
||||
|
||||
# 2. Restore deprecated columns on new_chat_threads
|
||||
op.execute(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue