Skip to content

Commit f4b7652

Browse files
committed
Remove unsupported 'share_queried_objects' capability from groups (#1005)
1 parent 0342526 commit f4b7652

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
"""Remove share_queried_objects from groups
2+
3+
Revision ID: 465b589d0362
4+
Revises: 56adf974831e
5+
Create Date: 2024-12-12 14:39:21.117379
6+
7+
"""
8+
from alembic import op
9+
10+
# revision identifiers, used by Alembic.
11+
revision = "465b589d0362"
12+
down_revision = "56adf974831e"
13+
branch_labels = None
14+
depends_on = None
15+
16+
17+
def upgrade():
18+
op.execute(
19+
"UPDATE \"group\" SET capabilities = array_remove(capabilities, 'share_queried_objects');"
20+
)
21+
pass
22+
23+
24+
def downgrade():
25+
pass

0 commit comments

Comments
 (0)