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
  • Loading branch information
dbernstein authored Dec 12, 2024
1 parent 48260da commit c94cfb0
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
"""Remove collection facet settings
Revision ID: 603b8ebd6daf
Revises: 8dde64eab209
Create Date: 2024-12-02 19:42:23.775579+00:00
"""

from alembic import op

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


def upgrade() -> None:
conn = op.get_bind()
conn.execute(
"UPDATE libraries set settings_dict = "
"settings_dict - array['facets_enabled_collection', 'facets_default_collection']"
)


def downgrade() -> None:
pass

0 comments on commit c94cfb0

Please sign in to comment.