-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚚 Add unique constraints and fix gene_ref_is_symbol to label_ref_is_s…
…ymbol
- Loading branch information
Showing
2 changed files
with
138 additions
and
1 deletion.
There are no files selected for viewing
86 changes: 86 additions & 0 deletions
86
...ty/migrations/0040_rename_gene_ref_is_symbol_artifactgene_label_ref_is_symbol_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,86 @@ | ||
# Generated by Django 5.1.1 on 2024-10-18 14:12 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("bionty", "0039_alter_cellline_source_alter_cellmarker_source_and_more"), | ||
("lnschema_core", "0067_alter_featurevalue_unique_together_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name="artifactgene", | ||
old_name="gene_ref_is_symbol", | ||
new_name="label_ref_is_symbol", | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="artifactcellline", | ||
unique_together={("artifact", "cellline", "feature")}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="artifactcellmarker", | ||
unique_together={("artifact", "cellmarker", "feature")}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="artifactcelltype", | ||
unique_together={("artifact", "celltype", "feature")}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="artifactdevelopmentalstage", | ||
unique_together={("artifact", "developmentalstage", "feature")}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="artifactdisease", | ||
unique_together={("artifact", "disease", "feature")}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="artifactethnicity", | ||
unique_together={("artifact", "ethnicity", "feature")}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="artifactexperimentalfactor", | ||
unique_together={("artifact", "experimentalfactor", "feature")}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="artifactgene", | ||
unique_together={("artifact", "gene", "feature")}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="artifactorganism", | ||
unique_together={("artifact", "organism", "feature")}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="artifactpathway", | ||
unique_together={("artifact", "pathway", "feature")}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="artifactphenotype", | ||
unique_together={("artifact", "phenotype", "feature")}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="artifactprotein", | ||
unique_together={("artifact", "protein", "feature")}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="artifacttissue", | ||
unique_together={("artifact", "tissue", "feature")}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="featuresetcellmarker", | ||
unique_together={("featureset", "cellmarker")}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="featuresetgene", | ||
unique_together={("featureset", "gene")}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="featuresetpathway", | ||
unique_together={("featureset", "pathway")}, | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="featuresetprotein", | ||
unique_together={("featureset", "protein")}, | ||
), | ||
] |
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