From c3fbc0aa7b4dfe3b693be94a2530fef2fab69cf1 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sun, 29 May 2016 12:48:31 +0200 Subject: [PATCH] migration --- .../0015_coinifyapiinvoice_coinifycallback.py | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 shop/migrations/0015_coinifyapiinvoice_coinifycallback.py diff --git a/shop/migrations/0015_coinifyapiinvoice_coinifycallback.py b/shop/migrations/0015_coinifyapiinvoice_coinifycallback.py new file mode 100644 index 00000000..0b4ad9a1 --- /dev/null +++ b/shop/migrations/0015_coinifyapiinvoice_coinifycallback.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.2 on 2016-05-29 10:47 +from __future__ import unicode_literals + +import django.contrib.postgres.fields.jsonb +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('shop', '0014_ticket_name'), + ] + + operations = [ + migrations.CreateModel( + name='CoinifyAPIInvoice', + 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)), + ('invoicejson', django.contrib.postgres.fields.jsonb.JSONField()), + ('order', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='shop.Order')), + ], + options={ + 'abstract': False, + }, + ), + migrations.CreateModel( + name='CoinifyCallback', + 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)), + ('payload', django.contrib.postgres.fields.jsonb.JSONField()), + ('order', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='shop.Order')), + ], + options={ + 'abstract': False, + }, + ), + ]