integreat-cms icon indicating copy to clipboard operation
integreat-cms copied to clipboard

Refactor migrations that modifiy roles

Open david-venhoff opened this issue 6 months ago • 1 comments

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

david-venhoff avatar Aug 14 '24 08:08 david-venhoff