Skip to content

Commit

Permalink
fix(migrations): redo migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Nov 13, 2024
1 parent f2e98a9 commit 120745c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 71 deletions.
26 changes: 16 additions & 10 deletions apis_instance_nsvis/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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')),
],
Expand All @@ -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')),
],
Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -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(
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 120745c

Please sign in to comment.