Fix capability ID reference in migration script
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Successful in 41s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m15s
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Successful in 41s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 34s
Test Suite / playwright-tests (push) Successful in 1m15s
- Updated the SQL migration script to select the correct capability ID from the capabilities table, ensuring accurate role capability grants during database migrations.
This commit is contained in:
1 parent
7db77f4738
commit
20927a5969
1 file changed
+1
-1
@@ -124,7 +124,7 @@ ON CONFLICT (id) DO NOTHING;
|
||||
-- Konvention: keine Grant-Zeile = alle aktiven Mitglieder (min_account_state reicht).
|
||||
|
||||
INSERT INTO club_role_capability_grants (role_code, capability_id)
|
||||
SELECT r.role_code, c.cap_id
|
||||
SELECT r.role_code, c.id
|
||||
FROM (VALUES
|
||||
('club_admin', 'org.structure.manage'),
|
||||
('division_lead', 'org.structure.manage'),
|
||||
|
||||
Reference in new issue
Block a user