Update migration dependencies and foreign key references in site building and planner modules
- Changed migration dependencies in `0003_workflow_and_taxonomies.py` to reflect the correct order. - Updated foreign key references from `account` to `tenant` in multiple migration files for consistency. - Adjusted related names in foreign key fields to ensure proper relationships in the database schema.
This commit is contained in:
@@ -16,7 +16,7 @@ def default_list():
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('site_building', '0002_sitebuilder_metadata'),
|
||||
('site_building', '0003_workflow_and_taxonomies'),
|
||||
('planner', '0007_merge_20251109_2138'),
|
||||
]
|
||||
|
||||
@@ -44,7 +44,14 @@ class Migration(migrations.Migration):
|
||||
migrations.AddField(
|
||||
model_name='contentideas',
|
||||
name='taxonomy',
|
||||
field=models.ForeignKey(blank=True, help_text='Optional taxonomy association when derived from blueprint planning', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='content_ideas', to='site_building.siteblueprinttaxonomy'),
|
||||
field=models.ForeignKey(
|
||||
blank=True,
|
||||
help_text='Optional taxonomy association when derived from blueprint planning',
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.SET_NULL,
|
||||
related_name='content_ideas',
|
||||
to='site_building.SiteBlueprintTaxonomy',
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='keywords',
|
||||
|
||||
Reference in New Issue
Block a user