redo migrations for tickets app

This commit is contained in:
Thomas Steen Rasmussen 2017-08-19 21:27:07 +02:00
parent 89aa6bfa22
commit b49ecb87b0
4 changed files with 23 additions and 54 deletions

View file

@ -1,26 +0,0 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-08-17 17:37
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('camps', '0022_camp_colour'),
('tickets', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='baseticket',
name='camp',
),
migrations.AddField(
model_name='tickettype',
name='camp',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='camps.Camp'),
),
]

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-08-19 19:09
# Generated by Django 1.10.5 on 2017-08-19 19:26
from __future__ import unicode_literals
from django.db import migrations, models
@ -11,10 +11,15 @@ import uuid
class Migration(migrations.Migration):
dependencies = [
('tickets', '0004_auto_20170818_1303'),
('camps', '0022_camp_colour'),
('tickets', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='baseticket',
name='camp',
),
migrations.RemoveField(
model_name='baseticket',
name='id',
@ -31,6 +36,10 @@ class Migration(migrations.Migration):
model_name='discountticket',
name='uuid',
),
migrations.RemoveField(
model_name='shopticket',
name='checked_in',
),
migrations.RemoveField(
model_name='shopticket',
name='created',
@ -55,6 +64,11 @@ class Migration(migrations.Migration):
model_name='sponsorticket',
name='uuid',
),
migrations.AddField(
model_name='baseticket',
name='checked_in',
field=models.BooleanField(default=False),
),
migrations.AddField(
model_name='baseticket',
name='created',
@ -71,6 +85,11 @@ class Migration(migrations.Migration):
name='uuid',
field=models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False),
),
migrations.AddField(
model_name='tickettype',
name='camp',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='camps.Camp'),
),
migrations.AlterField(
model_name='discountticket',
name='baseticket_ptr',

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-08-17 17:38
# Generated by Django 1.10.5 on 2017-08-19 19:26
from __future__ import unicode_literals
from django.db import migrations, models
@ -9,7 +9,7 @@ import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tickets', '0002_auto_20170817_1937'),
('tickets', '0002_auto_20170819_2126'),
]
operations = [

View file

@ -1,24 +0,0 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-08-18 11:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tickets', '0003_auto_20170817_1938'),
]
operations = [
migrations.RemoveField(
model_name='shopticket',
name='checked_in',
),
migrations.AddField(
model_name='baseticket',
name='checked_in',
field=models.BooleanField(default=False),
),
]