integreat-cms
integreat-cms copied to clipboard
Refactor migrations that modifiy roles
Motivation
Each time a migration modifies the roles, it runs a copy-pasted chunk of code.
Proposed Solution
Create a common function for this code, and consider running it only once if that is possible
Alternatives
Do nothing
Additional Context
Affected migrations:
- 0025
- 0035
- 0039
- 0043
- 0044
- 0053
- 0056
- 0058
And also the migration of #2895 after it has been merged