mirror of https://github.com/snachodog/mybuddy.git
Recreate initial migration.
This commit is contained in:
parent
68bad13e93
commit
b4eefea7f9
|
@ -1,7 +1,8 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.4 on 2017-08-17 15:22
|
||||
# Generated by Django 1.11.4 on 2017-08-18 03:13
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
@ -11,6 +12,7 @@ class Migration(migrations.Migration):
|
|||
initial = True
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
|
@ -23,8 +25,8 @@ class Migration(migrations.Migration):
|
|||
('birth_date', models.DateField()),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'Children',
|
||||
'ordering': ['last_name', 'first_name'],
|
||||
'verbose_name_plural': 'Children',
|
||||
'default_permissions': ('view', 'add', 'change', 'delete'),
|
||||
},
|
||||
),
|
||||
|
@ -81,8 +83,8 @@ class Migration(migrations.Migration):
|
|||
('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sleep', to='core.Child')),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'Sleep',
|
||||
'ordering': ['-start'],
|
||||
'verbose_name_plural': 'Sleep',
|
||||
'default_permissions': ('view', 'add', 'change', 'delete'),
|
||||
},
|
||||
),
|
||||
|
@ -90,10 +92,11 @@ class Migration(migrations.Migration):
|
|||
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)),
|
||||
('name', models.CharField(blank=True, max_length=255, null=True)),
|
||||
('start', models.DateTimeField(auto_now=True)),
|
||||
('end', models.DateTimeField(blank=True, editable=False, null=True)),
|
||||
('active', models.BooleanField(default=True, editable=False)),
|
||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='timers', to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
options={
|
||||
'ordering': ['active', '-start'],
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.4 on 2017-08-17 18:26
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('core', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='timer',
|
||||
name='user',
|
||||
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='timers', to=settings.AUTH_USER_MODEL),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue