Skip to content

Commit

Permalink
Manually edit migration file
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Nov 6, 2021
1 parent 049c20a commit 9bb6de1
Showing 1 changed file with 12 additions and 42 deletions.
54 changes: 12 additions & 42 deletions miqa/core/migrations/0018_image_to_frame.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Generated by Django 3.2.8 on 2021-11-05 19:29
import uuid

from django.db import migrations, models
import django.db.models.deletion
import django_extensions.db.fields


class Migration(migrations.Migration):
Expand All @@ -13,49 +10,11 @@ class Migration(migrations.Migration):
]

operations = [
migrations.CreateModel(
name='Frame',
fields=[
(
'created',
django_extensions.db.fields.CreationDateTimeField(
auto_now_add=True, verbose_name='created'
),
),
(
'modified',
django_extensions.db.fields.ModificationDateTimeField(
auto_now=True, verbose_name='modified'
),
),
(
'id',
models.UUIDField(
default=uuid.uuid4, editable=False, primary_key=True, serialize=False
),
),
('raw_path', models.CharField(max_length=500, unique=True)),
('frame_number', models.IntegerField(default=0)),
(
'scan',
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name='frames',
to='core.scan',
),
),
],
options={
'ordering': ['scan', 'frame_number'],
},
),
migrations.RemoveField(
model_name='evaluation',
name='image',
),
migrations.DeleteModel(
name='Image',
),
migrations.RenameModel('Image', 'Frame'),
migrations.AddField(
model_name='evaluation',
name='frame',
Expand All @@ -70,4 +29,15 @@ class Migration(migrations.Migration):
fields=['scan', 'frame_number'], name='core_frame_scan_id_ea9adc_idx'
),
),
migrations.RemoveIndex(
model_name='frame',
name='core_image_scan_id_26e3ff_idx',
),
migrations.AlterField(
model_name='frame',
name='scan',
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE, related_name='frames', to='core.scan'
),
),
]

0 comments on commit 9bb6de1

Please sign in to comment.