diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-14 17:08:54 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-14 17:08:54 +0100 |
commit | bdcc5d9d79f355eac6c2717b0b364b847b9a8115 (patch) | |
tree | fded47125bf031632db498a937225c64e841a56c /ctrack/caf/migrations | |
parent | 14fa59eee9ba35ad462b5b17229a09164f5d716d (diff) |
reset a lot of migrations - all unit tests passing - now has response required fields for simple event
Diffstat (limited to 'ctrack/caf/migrations')
-rw-r--r-- | ctrack/caf/migrations/0001_initial.py | 19 | ||||
-rw-r--r-- | ctrack/caf/migrations/0002_caf_systems.py | 18 |
2 files changed, 10 insertions, 27 deletions
diff --git a/ctrack/caf/migrations/0001_initial.py b/ctrack/caf/migrations/0001_initial.py index ca65af6..ec2898a 100644 --- a/ctrack/caf/migrations/0001_initial.py +++ b/ctrack/caf/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 2.2.12 on 2020-08-27 09:40 +# Generated by Django 3.1.2 on 2020-10-14 16:05 import ctrack.caf.models from django.db import migrations, models @@ -43,7 +43,7 @@ class Migration(migrations.Migration): ('descriptor', models.CharField(max_length=100)), ('virtual_location', models.CharField(help_text='USB, Rosa, email, etc', max_length=100)), ('physical_location', models.CharField(blank=True, help_text='Cupboard, room, building, etc', max_length=100)), - ('physical_location_organisation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organisations.Organisation')), + ('physical_location_organisation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organisations.organisation')), ], ), migrations.CreateModel( @@ -52,7 +52,7 @@ class Migration(migrations.Migration): ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=256)), ('description', models.CharField(max_length=512)), - ('organisation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organisations.Organisation')), + ('organisation', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organisations.organisation')), ('systems', models.ManyToManyField(to='caf.ApplicableSystem')), ], ), @@ -62,7 +62,7 @@ class Migration(migrations.Migration): ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('type', models.IntegerField(choices=[(1, 'Excel'), (2, 'Word'), (3, 'PDF'), (4, 'Hard Copy')], default=1)), - ('file_store_location', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='caf.FileStore')), + ('file_store_location', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='caf.filestore')), ], ), migrations.CreateModel( @@ -72,11 +72,12 @@ class Migration(migrations.Migration): ('version', models.CharField(blank=True, max_length=10, null=True)), ('triage_review_date', models.DateField(blank=True, null=True)), ('comments', models.TextField(max_length=1000)), - ('confidence_grading', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='confidence_grading', to='caf.Grading')), - ('file', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='caf.DocumentFile')), - ('organisation', models.ForeignKey(on_delete=models.SET(ctrack.caf.models.CAF.get_sentinel_org), to='organisations.Organisation')), - ('quality_grading', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='quality_grading', to='caf.Grading')), - ('triage_review_inspector', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='organisations.Person')), + ('confidence_grading', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='confidence_grading', to='caf.grading')), + ('file', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='caf.documentfile')), + ('organisation', models.ForeignKey(on_delete=models.SET(ctrack.caf.models.CAF.get_sentinel_org), to='organisations.organisation')), + ('quality_grading', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='quality_grading', to='caf.grading')), + ('systems', models.ManyToManyField(to='caf.ApplicableSystem')), + ('triage_review_inspector', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='organisations.person')), ], options={ 'verbose_name': 'CAF', diff --git a/ctrack/caf/migrations/0002_caf_systems.py b/ctrack/caf/migrations/0002_caf_systems.py deleted file mode 100644 index 9e0f76a..0000000 --- a/ctrack/caf/migrations/0002_caf_systems.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 2.2.12 on 2020-08-27 12:44 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('caf', '0001_initial'), - ] - - operations = [ - migrations.AddField( - model_name='caf', - name='systems', - field=models.ManyToManyField(to='caf.ApplicableSystem'), - ), - ] |