Commit e175528
committed
feat(migrations): Add prefix assignment migration for ACL rules
Introduces a data migration to copy source and destination prefix IDs
to the newly added GenericForeignKey fields in ACLStandardRule and
ACLExtendedRule. Ensures existing prefix assignments are preserved
during schema updates.1 parent 57eb10b commit e175528
File tree
1 file changed
+24
-0
lines changed- netbox_acls/migrations
1 file changed
+24
-0
lines changedLines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
5 | 27 | | |
6 | 28 | | |
7 | 29 | | |
| |||
226 | 248 | | |
227 | 249 | | |
228 | 250 | | |
| 251 | + | |
| 252 | + | |
229 | 253 | | |
0 commit comments