From f4b7652008f533d024e9c6087f203821cad229c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Srokosz?= Date: Thu, 12 Dec 2024 15:49:53 +0100 Subject: [PATCH] Remove unsupported 'share_queried_objects' capability from groups (#1005) --- ...emove_share_queried_objects_from_groups.py | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 mwdb/model/migrations/versions/465b589d0362_remove_share_queried_objects_from_groups.py diff --git a/mwdb/model/migrations/versions/465b589d0362_remove_share_queried_objects_from_groups.py b/mwdb/model/migrations/versions/465b589d0362_remove_share_queried_objects_from_groups.py new file mode 100644 index 00000000..a35b99e9 --- /dev/null +++ b/mwdb/model/migrations/versions/465b589d0362_remove_share_queried_objects_from_groups.py @@ -0,0 +1,25 @@ +"""Remove share_queried_objects from groups + +Revision ID: 465b589d0362 +Revises: 56adf974831e +Create Date: 2024-12-12 14:39:21.117379 + +""" +from alembic import op + +# revision identifiers, used by Alembic. +revision = "465b589d0362" +down_revision = "56adf974831e" +branch_labels = None +depends_on = None + + +def upgrade(): + op.execute( + "UPDATE \"group\" SET capabilities = array_remove(capabilities, 'share_queried_objects');" + ) + pass + + +def downgrade(): + pass