mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-05 05:42:39 +02:00
add public_share_enabled column to migration
This commit is contained in:
parent
87183d1eb7
commit
b61d96fb85
1 changed files with 12 additions and 0 deletions
|
|
@ -29,7 +29,19 @@ def upgrade() -> None:
|
||||||
sa.Column("public_share_token", sa.String(64), nullable=True),
|
sa.Column("public_share_token", sa.String(64), nullable=True),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Add public_share_enabled column
|
||||||
|
op.add_column(
|
||||||
|
"new_chat_threads",
|
||||||
|
sa.Column(
|
||||||
|
"public_share_enabled",
|
||||||
|
sa.Boolean(),
|
||||||
|
nullable=False,
|
||||||
|
server_default="false",
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def downgrade() -> None:
|
def downgrade() -> None:
|
||||||
"""Remove public sharing columns from new_chat_threads."""
|
"""Remove public sharing columns from new_chat_threads."""
|
||||||
|
op.drop_column("new_chat_threads", "public_share_enabled")
|
||||||
op.drop_column("new_chat_threads", "public_share_token")
|
op.drop_column("new_chat_threads", "public_share_token")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue