This repository has been archived by the owner on Jan 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* π Replace upper-case Dataset with Collection * π Replace lower-case * π± Add migration * π Fix
- Loading branch information
Showing
5 changed files
with
188 additions
and
92 deletions.
There are no files selected for viewing
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
34 changes: 34 additions & 0 deletions
34
lnschema_core/migrations/0037_rename_dataset_to_collection.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,34 @@ | ||
# Generated by Django 4.2.5 on 2023-12-23 22:52 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("lnschema_core", "0036_storage_description"), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameModel( | ||
old_name="Dataset", | ||
new_name="Collection", | ||
), | ||
migrations.RenameModel( | ||
old_name="DatasetFeatureSet", | ||
new_name="CollectionFeatureSet", | ||
), | ||
migrations.RenameModel( | ||
old_name="DatasetULabel", | ||
new_name="CollectionULabel", | ||
), | ||
migrations.RenameField( | ||
model_name="collectionfeatureset", | ||
old_name="dataset", | ||
new_name="collection", | ||
), | ||
migrations.RenameField( | ||
model_name="collectionulabel", | ||
old_name="dataset", | ||
new_name="collection", | ||
), | ||
] |
57 changes: 57 additions & 0 deletions
57
...ema_core/migrations/0038_alter_collection_artifact_alter_collection_artifacts_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,57 @@ | ||
# Generated by Django 4.2.5 on 2023-12-23 23:10 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
import lnschema_core.users | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("lnschema_core", "0037_rename_dataset_to_collection"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="collection", | ||
name="artifact", | ||
field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.PROTECT, related_name="collection", to="lnschema_core.artifact"), | ||
), | ||
migrations.AlterField( | ||
model_name="collection", | ||
name="artifacts", | ||
field=models.ManyToManyField(related_name="collections", to="lnschema_core.artifact"), | ||
), | ||
migrations.AlterField( | ||
model_name="collection", | ||
name="created_by", | ||
field=models.ForeignKey( | ||
default=lnschema_core.users.current_user_id, on_delete=django.db.models.deletion.PROTECT, related_name="created_collections", to="lnschema_core.user" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="collection", | ||
name="feature_sets", | ||
field=models.ManyToManyField(related_name="collections", through="lnschema_core.CollectionFeatureSet", to="lnschema_core.featureset"), | ||
), | ||
migrations.AlterField( | ||
model_name="collection", | ||
name="input_of", | ||
field=models.ManyToManyField(related_name="input_collections", to="lnschema_core.run"), | ||
), | ||
migrations.AlterField( | ||
model_name="collection", | ||
name="run", | ||
field=models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.PROTECT, related_name="output_collections", to="lnschema_core.run"), | ||
), | ||
migrations.AlterField( | ||
model_name="collection", | ||
name="transform", | ||
field=models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.PROTECT, related_name="output_collections", to="lnschema_core.transform"), | ||
), | ||
migrations.AlterField( | ||
model_name="collection", | ||
name="ulabels", | ||
field=models.ManyToManyField(related_name="collections", through="lnschema_core.CollectionULabel", to="lnschema_core.ulabel"), | ||
), | ||
] |
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ class BackedAccessor: | |
pass | ||
|
||
|
||
class MappedDataset: | ||
class MappedCollection: | ||
pass | ||
|
||
|
||
|
Oops, something went wrong.