fix: resolve broken migration dependencies and references after company app removal

- Updated migration files to remove references to the old `companies` app and replace them with new app dependencies (`operators` and `manufacturers`).
- Fixed foreign key references in migration files to point to the correct models in the new apps.
- Updated import statements in management commands and test files to reflect the new app structure.
- Completed a thorough validation of the migration system to ensure full functionality and operational status.
This commit is contained in:
pacnpal
2025-07-05 09:55:36 -04:00
parent 751cd86a31
commit b871a1d396
10 changed files with 273 additions and 653 deletions

View File

@@ -7,7 +7,7 @@ class Migration(migrations.Migration):
initial = True
dependencies = [
("companies", "0001_initial"),
("manufacturers", "0001_initial"),
("designers", "0001_initial"),
("parks", "0001_initial"), # Changed to depend on initial parks migration
]
@@ -97,7 +97,7 @@ class Migration(migrations.Migration):
blank=True,
null=True,
on_delete=django.db.models.deletion.CASCADE,
to="companies.manufacturer",
to="manufacturers.manufacturer",
),
),
(