Skip to content

Commit

Permalink
Migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Paris Kolios authored and ticosax committed Nov 16, 2017
1 parent 86ff847 commit 3977ebb
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions pinax/stripe/migrations/0011_coupons.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2017-11-16 14:51
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
('pinax_stripe', '0010_connect'),
]

operations = [
migrations.CreateModel(
name='Discount',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('start', models.DateTimeField(null=True)),
('end', models.DateTimeField(null=True)),
],
),
migrations.AddField(
model_name='coupon',
name='stripe_account',
field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.CASCADE, to='pinax_stripe.Account'),
),
migrations.AlterField(
model_name='coupon',
name='duration',
field=models.CharField(choices=[('forever', 'forever'), ('once', 'once'), ('repeating', 'repeating')], default='once', max_length=10),
),
migrations.AlterField(
model_name='coupon',
name='stripe_id',
field=models.CharField(max_length=191),
),
migrations.AlterUniqueTogether(
name='coupon',
unique_together=set([('stripe_id', 'stripe_account')]),
),
migrations.AddField(
model_name='discount',
name='coupon',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='pinax_stripe.Coupon'),
),
migrations.AddField(
model_name='discount',
name='customer',
field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, to='pinax_stripe.Customer'),
),
migrations.AddField(
model_name='discount',
name='subscription',
field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, to='pinax_stripe.Subscription'),
),
]

0 comments on commit 3977ebb

Please sign in to comment.