Skip to content

Commit

Permalink
fix(formlibrary): squash migrations into a single one
Browse files Browse the repository at this point in the history
  • Loading branch information
anastiour@gmail.com committed May 6, 2020
1 parent f25ac8c commit dc98fbe
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 177 deletions.
31 changes: 16 additions & 15 deletions formlibrary/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 2.2.10 on 2020-05-06 14:19
# Generated by Django 2.2.10 on 2020-05-06 14:50

from django.db import migrations, models
import django.db.models.deletion
Expand All @@ -10,8 +10,8 @@ class Migration(migrations.Migration):
initial = True

dependencies = [
('workflow', '0027_auto_20200428_0711'),
('sites', '0002_alter_domain_unique'),
('workflow', '0027_auto_20200428_0711'),
]

operations = [
Expand All @@ -27,32 +27,27 @@ class Migration(migrations.Migration):
fields=[
('start_date', models.DateField(blank=True, null=True)),
('end_date', models.DateField(blank=True, null=True)),
('create_date', models.DateTimeField(auto_now_add=True, verbose_name='Creation date')),
('modified_date', models.DateTimeField(auto_now=True, verbose_name='Modification date')),
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('name', models.CharField(max_length=255)),
('description', models.TextField(blank=True, max_length=550, null=True)),
('form_verified_by', models.CharField(blank=True, max_length=255, null=True)),
('form_filled_by', models.CharField(blank=True, max_length=255, null=True)),
('indicator', models.CharField(max_length=255)),
('reporting_period', models.CharField(blank=True, max_length=255, null=True)),
('total_individuals_received_input', models.IntegerField(blank=True, null=True)),
('distribution_location', models.CharField(blank=True, max_length=255, null=True)),
('input_type_distributed', models.CharField(blank=True, max_length=255, null=True)),
('total_received_input', models.CharField(blank=True, max_length=255, null=True)),
('create_date', models.DateTimeField(blank=True, null=True)),
('edit_date', models.DateTimeField(blank=True, null=True)),
('form_completed_by', models.CharField(blank=True, max_length=255, null=True)),
('item_distributed', models.CharField(max_length=255)),
('quantity', models.IntegerField(verbose_name='Number of items distributed')),
('cases', models.ManyToManyField(blank=True, to='formlibrary.Case')),
('contacts', models.ManyToManyField(blank=True, to='workflow.Contact')),
('created_by', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='workflow.ActivityUser', verbose_name='Created by')),
('implementer', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='workflow.Stakeholder')),
('initiation', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='workflow.ProjectAgreement', verbose_name='Project Initiation')),
('modified_by', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='workflow.ActivityUser', verbose_name='Modified by')),
('office', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='workflow.Office')),
('program', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='workflow.Program')),
('province', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='workflow.Province')),
('site', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='sites.Site')),
],
options={
'ordering': ('name',),
'abstract': False,
},
),
migrations.CreateModel(
Expand Down Expand Up @@ -102,11 +97,13 @@ class Migration(migrations.Migration):
fields=[
('start_date', models.DateField(blank=True, null=True)),
('end_date', models.DateField(blank=True, null=True)),
('create_date', models.DateTimeField(auto_now_add=True, verbose_name='Creation date')),
('modified_date', models.DateTimeField(auto_now=True, verbose_name='Modification date')),
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('name', models.CharField(max_length=255)),
('description', models.TextField(blank=True, max_length=550, null=True)),
('form_verified_by', models.CharField(blank=True, max_length=255, null=True)),
('form_filled_by', models.CharField(blank=True, max_length=255, null=True)),
('form_completed_by', models.CharField(blank=True, max_length=255, null=True)),
('duration', models.IntegerField(help_text='Number of days? Sessions?')),
('cases', models.ManyToManyField(blank=True, to='formlibrary.Case')),
('contacts', models.ManyToManyField(blank=True, to='workflow.Contact')),
Expand All @@ -119,6 +116,7 @@ class Migration(migrations.Migration):
('trainer', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='trainer_of', to='workflow.Contact')),
],
options={
'ordering': ('name',),
'abstract': False,
},
),
Expand All @@ -127,11 +125,13 @@ class Migration(migrations.Migration):
fields=[
('start_date', models.DateField(blank=True, null=True)),
('end_date', models.DateField(blank=True, null=True)),
('create_date', models.DateTimeField(auto_now_add=True, verbose_name='Creation date')),
('modified_date', models.DateTimeField(auto_now=True, verbose_name='Modification date')),
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('name', models.CharField(max_length=255)),
('description', models.TextField(blank=True, max_length=550, null=True)),
('form_verified_by', models.CharField(blank=True, max_length=255, null=True)),
('form_filled_by', models.CharField(blank=True, max_length=255, null=True)),
('form_completed_by', models.CharField(blank=True, max_length=255, null=True)),
('status', models.CharField(max_length=255)),
('cases', models.ManyToManyField(blank=True, to='formlibrary.Case')),
('contacts', models.ManyToManyField(blank=True, to='workflow.Contact')),
Expand All @@ -143,6 +143,7 @@ class Migration(migrations.Migration):
('site', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='sites.Site')),
],
options={
'ordering': ('name',),
'abstract': False,
},
),
Expand Down
133 changes: 0 additions & 133 deletions formlibrary/migrations/0007_auto_20200503_1953.py

This file was deleted.

29 changes: 0 additions & 29 deletions formlibrary/migrations/0008_auto_20200503_2000.py

This file was deleted.

0 comments on commit dc98fbe

Please sign in to comment.