Skip to content

Commit

Permalink
Add migration to remove obsolete settings (facets_enabled_collection …
Browse files Browse the repository at this point in the history
…and facets_default_collection).
  • Loading branch information
dbernstein committed Dec 2, 2024
1 parent c2af3a4 commit 592d411
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
"""Remove collection facet settings
Revision ID: 603b8ebd6daf
Revises: 272da5f400de
Create Date: 2024-12-02 19:42:23.775579+00:00
"""

from alembic import op

# revision identifiers, used by Alembic.
revision = "603b8ebd6daf"
down_revision = "272da5f400de"
branch_labels = None
depends_on = None


def upgrade() -> None:
conn = op.get_bind()
conn.execute(
"UPDATE integration_library_configurations set settings = settings::jsonb - 'facets_enabled_collection'"
)
conn.execute(
"UPDATE integration_library_configurations set settings = settings::jsonb - 'facets_default_collection'"
)


def downgrade() -> None:
pass

0 comments on commit 592d411

Please sign in to comment.