Update core migrations.

This commit is contained in:
Christopher Charbonneau Wells 2017-08-17 11:23:40 -04:00
parent 72b1f3e37b
commit 60226dd9c5
1 changed files with 20 additions and 5 deletions

View File

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-16 19:50
# Generated by Django 1.11.4 on 2017-08-17 15:22
from __future__ import unicode_literals
from django.db import migrations, models
@ -39,8 +39,8 @@ class Migration(migrations.Migration):
('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='diaper_change', to='core.Child')),
],
options={
'default_permissions': ('view', 'add', 'change', 'delete'),
'ordering': ['-time'],
'default_permissions': ('view', 'add', 'change', 'delete'),
},
),
migrations.CreateModel(
@ -51,11 +51,12 @@ class Migration(migrations.Migration):
('end', models.DateTimeField()),
('type', models.CharField(choices=[('breast milk', 'Breast milk'), ('formula', 'Formula')], max_length=255)),
('method', models.CharField(choices=[('bottle', 'Bottle'), ('left breast', 'Left breast'), ('right breast', 'Right breast')], max_length=255)),
('amount', models.FloatField(blank=True, null=True)),
('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='feeding', to='core.Child')),
],
options={
'default_permissions': ('view', 'add', 'change', 'delete'),
'ordering': ['-start'],
'default_permissions': ('view', 'add', 'change', 'delete'),
},
),
migrations.CreateModel(
@ -67,8 +68,8 @@ class Migration(migrations.Migration):
('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='note', to='core.Child')),
],
options={
'default_permissions': ('view', 'add', 'change', 'delete'),
'ordering': ['-time'],
'default_permissions': ('view', 'add', 'change', 'delete'),
},
),
migrations.CreateModel(
@ -85,6 +86,20 @@ class Migration(migrations.Migration):
'default_permissions': ('view', 'add', 'change', 'delete'),
},
),
migrations.CreateModel(
name='Timer',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(blank=True, max_length=255)),
('start', models.DateTimeField(auto_now=True)),
('end', models.DateTimeField(blank=True, editable=False, null=True)),
('active', models.BooleanField(default=True, editable=False)),
],
options={
'ordering': ['active', '-start'],
'default_permissions': ('view', 'add', 'change', 'delete'),
},
),
migrations.CreateModel(
name='TummyTime',
fields=[
@ -95,8 +110,8 @@ class Migration(migrations.Migration):
('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tummy_time', to='core.Child')),
],
options={
'default_permissions': ('view', 'add', 'change', 'delete'),
'ordering': ['-start'],
'default_permissions': ('view', 'add', 'change', 'delete'),
},
),
]