Skip to content

Commit

Permalink
collapsed migrations (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
azhavoro authored and nmanovic committed Apr 16, 2019
1 parent 17a4e8e commit 16cf076
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 40 deletions.
5 changes: 5 additions & 0 deletions cvat/apps/engine/migrations/0015_db_redesign_20190217.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ class Migration(migrations.Migration):
name='status',
field=models.CharField(choices=[('ANNOTATION', 'annotation'), ('VALIDATION', 'validation'), ('COMPLETED', 'completed')], default=cvat.apps.engine.models.StatusChoice('annotation'), max_length=32),
),
migrations.AlterField(
model_name='task',
name='overlap',
field=models.PositiveIntegerField(null=True),
),
migrations.RemoveField(
model_name='task',
name='path',
Expand Down
4 changes: 2 additions & 2 deletions cvat/apps/engine/migrations/0016_attribute_spec_20190217.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def fill_task_meta_data_forward(apps, schema_editor):
db_video.width = image.width
db_video.height = image.height
image.close()
except:
except FileNotFoundError:
db_video.width = 0
db_video.height = 0

Expand All @@ -119,7 +119,7 @@ def fill_task_meta_data_forward(apps, schema_editor):
db_image.width = image.width
db_image.height = image.height
image.close()
except:
except FileNotFoundError:
db_image.width = 0
db_image.height = 0

Expand Down
7 changes: 4 additions & 3 deletions cvat/apps/engine/migrations/0017_db_redesign_20190221.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,13 +722,10 @@ class Migration(migrations.Migration):
name='image',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='engine.LabeledImage'),
),

migrations.RunPython(
code=copy_annotations_forward,
reverse_code=copy_annotations_backward,
),


migrations.RemoveField(
model_name='labeledbox',
name='job',
Expand Down Expand Up @@ -765,6 +762,10 @@ class Migration(migrations.Migration):
model_name='labeledpolygon',
name='job',
),
migrations.RemoveField(
model_name='job',
name='max_shape_id',
),
migrations.RemoveField(
model_name='labeledpolygon',
name='label',
Expand Down
17 changes: 0 additions & 17 deletions cvat/apps/engine/migrations/0018_remove_job_max_shape_id.py

This file was deleted.

18 changes: 0 additions & 18 deletions cvat/apps/engine/migrations/0019_auto_20190404_1906.py

This file was deleted.

0 comments on commit 16cf076

Please sign in to comment.