mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-22 14:11:08 -05:00
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:
@@ -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",
|
||||
),
|
||||
),
|
||||
(
|
||||
|
||||
@@ -5,7 +5,7 @@ from django.db import migrations, models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("companies", "0001_initial"),
|
||||
("manufacturers", "0001_initial"),
|
||||
("rides", "0001_initial"),
|
||||
]
|
||||
|
||||
@@ -42,7 +42,7 @@ class Migration(migrations.Migration):
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.SET_NULL,
|
||||
related_name="ride_models",
|
||||
to="companies.manufacturer",
|
||||
to="manufacturers.manufacturer",
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -8,7 +8,7 @@ from django.db import migrations, models
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("designers", "0001_initial"),
|
||||
("companies", "0001_initial"),
|
||||
("manufacturers", "0001_initial"),
|
||||
("parks", "0002_fix_pghistory_fields"), # This dependency is important for pghistory fields
|
||||
("pghistory", "0006_delete_aggregateevent"),
|
||||
("rides", "0002_ridemodel"),
|
||||
@@ -107,7 +107,7 @@ class Migration(migrations.Migration):
|
||||
on_delete=django.db.models.deletion.DO_NOTHING,
|
||||
related_name="+",
|
||||
related_query_name="+",
|
||||
to="companies.manufacturer",
|
||||
to="manufacturers.manufacturer",
|
||||
),
|
||||
),
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user