-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add migration to remove obsolete settings (facets_enabled_collection …
…and facets_default_collection).
- Loading branch information
1 parent
c2af3a4
commit 592d411
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
alembic/versions/20241202_603b8ebd6daf_remove_collection_facet_settings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |