From 1d65ddeca62ccac429827c1448d973de33e12c71 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Tue, 12 Jul 2016 22:38:59 +0200 Subject: [PATCH] add migrations --- shop/migrations/0027_auto_20160712_2036.py | 77 +++++++++++++++++++ .../migrations/0005_auto_20160712_2036.py | 20 +++++ 2 files changed, 97 insertions(+) create mode 100644 shop/migrations/0027_auto_20160712_2036.py create mode 100644 villages/migrations/0005_auto_20160712_2036.py diff --git a/shop/migrations/0027_auto_20160712_2036.py b/shop/migrations/0027_auto_20160712_2036.py new file mode 100644 index 00000000..bb388524 --- /dev/null +++ b/shop/migrations/0027_auto_20160712_2036.py @@ -0,0 +1,77 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-07-12 20:36 +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 = [ + ('camps', '0005_auto_20160510_2011'), + ('shop', '0026_order_refunded'), + ] + + operations = [ + migrations.CreateModel( + name='CustomOrder', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created', models.DateTimeField(auto_now_add=True)), + ('updated', models.DateTimeField(auto_now=True)), + ('text', models.TextField()), + ('amount', models.IntegerField(help_text='Amount of this custom order (in DKK, including VAT).')), + ('paid', models.BooleanField(default=False, help_text='Whether this custom order has been paid.', verbose_name='Paid?')), + ('camp', models.ForeignKey(help_text='The camp this custom order is for.', on_delete=django.db.models.deletion.CASCADE, to='camps.Camp', verbose_name='Camp')), + ], + options={ + 'abstract': False, + }, + ), + migrations.AlterModelOptions( + name='creditnote', + options={'ordering': ['-created']}, + ), + migrations.AlterField( + model_name='creditnote', + name='paid', + field=models.BooleanField(default=False, help_text='Whether the amount in this creditnote has been paid back to the customer.', verbose_name='Paid?'), + ), + migrations.AlterField( + model_name='invoice', + name='order', + field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='shop.Order'), + ), + migrations.AlterField( + model_name='order', + name='camp', + field=models.ForeignKey(help_text='The camp this shop order is for.', on_delete=django.db.models.deletion.CASCADE, to='camps.Camp', verbose_name='Camp'), + ), + migrations.AlterField( + model_name='order', + name='open', + field=models.NullBooleanField(default=True, help_text='Whether this shop order is open or not. "None" means closed.', verbose_name='Open?'), + ), + migrations.AlterField( + model_name='order', + name='paid', + field=models.BooleanField(default=False, help_text='Whether this shop order has been paid.', verbose_name='Paid?'), + ), + migrations.AlterField( + model_name='order', + name='user', + field=models.ForeignKey(help_text='The user this shop order belongs to.', on_delete=django.db.models.deletion.CASCADE, related_name='orders', to=settings.AUTH_USER_MODEL, verbose_name='User'), + ), + migrations.AlterField( + model_name='product', + name='price', + field=models.IntegerField(help_text='Price of the product (in DKK, including VAT).'), + ), + migrations.AddField( + model_name='invoice', + name='customorder', + field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='shop.CustomOrder'), + ), + ] diff --git a/villages/migrations/0005_auto_20160712_2036.py b/villages/migrations/0005_auto_20160712_2036.py new file mode 100644 index 00000000..ff3f8ec2 --- /dev/null +++ b/villages/migrations/0005_auto_20160712_2036.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-07-12 20:36 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('villages', '0004_village_deleted'), + ] + + operations = [ + migrations.AlterField( + model_name='village', + name='description', + field=models.TextField(help_text='A descriptive text about your village. Markdown is supported.'), + ), + ]