diff --git a/apis_instance_nsvis/migrations/0001_initial.py b/apis_instance_nsvis/migrations/0001_initial.py index a269d8f..907be20 100644 --- a/apis_instance_nsvis/migrations/0001_initial.py +++ b/apis_instance_nsvis/migrations/0001_initial.py @@ -1,7 +1,6 @@ -# Generated by Django 5.1.2 on 2024-10-24 10:57 +# Generated by Django 5.1.2 on 2024-11-13 07:37 import apis_core.generic.abc -import apis_instance_nsvis.models import django.db.models.deletion import simple_history.models from django.conf import settings @@ -40,7 +39,7 @@ class Migration(migrations.Migration): bases=('relations.relation',), ), migrations.CreateModel( - name='Collaboration', + name='CollaboratesWith', fields=[ ('relation_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='relations.relation')), ], @@ -55,17 +54,24 @@ class Migration(migrations.Migration): options={ 'abstract': False, }, - bases=('apis_metainfo.rootobject', models.Model, apis_instance_nsvis.models.MongoDbDataMixin), + bases=('apis_metainfo.rootobject', models.Model), ), migrations.CreateModel( - name='LivesIn', + name='IsInventoriedIn', fields=[ ('relation_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='relations.relation')), ], bases=('relations.relation',), ), migrations.CreateModel( - name='Membership', + name='IsMemberOf', + fields=[ + ('relation_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='relations.relation')), + ], + bases=('relations.relation',), + ), + migrations.CreateModel( + name='LivesIn', fields=[ ('relation_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='relations.relation')), ], @@ -85,7 +91,7 @@ class Migration(migrations.Migration): options={ 'abstract': False, }, - bases=('apis_metainfo.rootobject', models.Model, apis_instance_nsvis.models.MongoDbDataMixin), + bases=('apis_metainfo.rootobject', models.Model), ), migrations.CreateModel( name='Place', @@ -98,7 +104,7 @@ class Migration(migrations.Migration): options={ 'abstract': False, }, - bases=('apis_metainfo.rootobject', models.Model, apis_instance_nsvis.models.MongoDbDataMixin), + bases=('apis_metainfo.rootobject', models.Model), ), migrations.CreateModel( name='WorksIn', @@ -113,8 +119,8 @@ class Migration(migrations.Migration): ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('data', models.JSONField()), ('filename', models.TextField(max_length=32)), - ('object_id', models.PositiveIntegerField()), - ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype')), + ('object_id', models.PositiveIntegerField(null=True)), + ('content_type', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype')), ], ), migrations.CreateModel( diff --git a/apis_instance_nsvis/migrations/0002_alter_mongodbmodel_content_type_and_more.py b/apis_instance_nsvis/migrations/0002_alter_mongodbmodel_content_type_and_more.py deleted file mode 100644 index e6cdea5..0000000 --- a/apis_instance_nsvis/migrations/0002_alter_mongodbmodel_content_type_and_more.py +++ /dev/null @@ -1,25 +0,0 @@ -# Generated by Django 5.1.2 on 2024-11-11 09:26 - -import django.db.models.deletion -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('apis_instance_nsvis', '0001_initial'), - ('contenttypes', '0002_remove_content_type_name'), - ] - - operations = [ - migrations.AlterField( - model_name='mongodbmodel', - name='content_type', - field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype'), - ), - migrations.AlterField( - model_name='mongodbmodel', - name='object_id', - field=models.PositiveIntegerField(null=True), - ), - ] diff --git a/apis_instance_nsvis/migrations/0003_rename_collaboration_collaborateswith.py b/apis_instance_nsvis/migrations/0003_rename_collaboration_collaborateswith.py deleted file mode 100644 index a4585d9..0000000 --- a/apis_instance_nsvis/migrations/0003_rename_collaboration_collaborateswith.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 5.1.2 on 2024-11-13 07:05 - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('apis_instance_nsvis', '0002_alter_mongodbmodel_content_type_and_more'), - ('relations', '0001_initial'), - ] - - operations = [ - migrations.RenameModel( - old_name='Collaboration', - new_name='CollaboratesWith', - ), - ] diff --git a/apis_instance_nsvis/migrations/0004_rename_membership_ismemberof.py b/apis_instance_nsvis/migrations/0004_rename_membership_ismemberof.py deleted file mode 100644 index a06efee..0000000 --- a/apis_instance_nsvis/migrations/0004_rename_membership_ismemberof.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 5.1.2 on 2024-11-13 07:05 - -from django.db import migrations - - -class Migration(migrations.Migration): - - dependencies = [ - ('apis_instance_nsvis', '0003_rename_collaboration_collaborateswith'), - ('relations', '0001_initial'), - ] - - operations = [ - migrations.RenameModel( - old_name='Membership', - new_name='IsMemberOf', - ), - ]