Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenConceptLab/ocl_issues#1399 | migrations | removed dormant locales…
… and old M2M relations
- Loading branch information
1 parent
47d6570
commit ed3d6e6
Showing
4 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
core/concepts/migrations/0046_remove_concept_descriptions_old_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 4.1.3 on 2023-01-18 04:20 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('concepts', '0045_rename_localizedtext_conceptname'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='concept', | ||
name='descriptions_old', | ||
), | ||
migrations.RemoveField( | ||
model_name='concept', | ||
name='names_old', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 4.1.3 on 2023-01-18 04:21 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('concepts', '0046_remove_concept_descriptions_old_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunSQL( | ||
""" | ||
DELETE FROM concept_names where concept_id is null; | ||
""" | ||
) | ||
] |
19 changes: 19 additions & 0 deletions
19
core/concepts/migrations/0048_alter_conceptname_concept.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 4.1.3 on 2023-01-18 04:24 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('concepts', '0047_auto_20230118_0421'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='conceptname', | ||
name='concept', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='names', to='concepts.concept'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters