-
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 … (
- Loading branch information
1 parent
48260da
commit c94cfb0
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
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,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 |