Repository navigation
Remove static models - #1551
Remove static models#1551
Conversation
Migration guide for meTurning eloquent model Enum implementationAssuming all possible model values are written into the corresponding
Creating the migrationFind all foreign keys and their constraint names using
Editing old migrationsInstead of removing the tables from the migrations, it's easier to keep them and replace eloquent model method calls Common needed replacements
|
Will do that once the PR has been reviewed
|
@mzur I fixed the remaining things you mentioned I think. Let me know if I missed something or if there is anything else. |
|
@mzur Created all PRs, see #1551 (comment) |
Now the migration no longer needs an exclusive lock.
Improve consistent use of new enums
Move enums to Enum namespace
There was a problem hiding this comment.
This is finished now I guess. We want to test this (and the migrations) on the staging instance but since the de.NBI cloud is offline it will have to wait.
Copying the list of companion PRs (checked are ready):
- ananas: biigle/ananas#69
- metadata-coco: biigle/metadata-coco#16
- user-disks: biigle/user-disks#60
- user-storage: biigle/user-storage#90
- maia: biigle/maia#241
- metadata-ifdo: biigle/metadata-ifdo#11
- laserpoints: biigle/laserpoints#132
- ptp: biigle/ptp#47
- color-sort: biigle/color-sort#81
- demo: biigle/demo#14
- metrics: biigle/metrics#6
- auth-haai: biigle/auth-haai#3
- auth-lslogin: biigle/auth-lslogin#12
- auth-nfdi: biigle/auth-nfdi#3
- geo: biigle/geo#89
|
@yannik131 The maia PR is not ready yet and geo is still missing. |
|
Wait, geo just wasn't linked above. |
|
I finished the maia PR (biigle/maia#241) and broke EnumMigrationHelper into smaller functions. |
|
Everything looks good! I gave it a spin in our staging instance and applied the migrations to a prod-like DB snapshot and everything worked smoothly and fast. |
Closes #1048