Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collapsed migrations #402

Merged
merged 1 commit into from
Apr 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.