You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.6 KiB
Python

# Generated by Django 3.2.5 on 2021-07-22 00:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lambdainst', '0004_auto_20200829_2054'),
]
operations = [
migrations.RenameField(
model_name='giftcode',
old_name='free_only',
new_name='new_clients_only',
),
migrations.RemoveField(
model_name='giftcode',
name='created_by',
),
migrations.AddField(
model_name='giftcode',
name='for_plans',
field=models.CharField(blank=True, help_text='Valid only for the following plans, separated by commas. ("1m,6m", "12m", ...) (empty: any plan allowed)', max_length=100),
),
migrations.AddField(
model_name='giftcode',
name='valid_after',
field=models.DateTimeField(blank=True, help_text='Valid only after the date. (empty: no limit)', null=True),
),
migrations.AddField(
model_name='giftcode',
name='valid_before',
field=models.DateTimeField(blank=True, help_text='Valid only before the date. (empty: no limit)', null=True),
),
migrations.AddField(
model_name='giftcode',
name='value',
field=models.IntegerField(blank=True, help_text='Integer between 0 and 100. If the total is below 0.50$, it will be free and skip the payment', null=True, verbose_name='Discount %'),
),
migrations.AlterField(
model_name='giftcode',
name='available',
field=models.BooleanField(default=True, help_text='Coupon invalid when unchecked.'),
),
migrations.SeparateDatabaseAndState(
state_operations=[
migrations.RemoveField(
model_name='giftcodeuser',
name='code',
),
migrations.RemoveField(
model_name='giftcodeuser',
name='user',
),
migrations.DeleteModel(
name='GiftCode',
),
migrations.DeleteModel(
name='GiftCodeUser',
),
],
database_operations=[
migrations.AlterModelTable(
name='GiftCode',
table='payments_coupon',
),
migrations.AlterModelTable(
name='GiftCodeUser',
table='payments_couponuser',
),
],
),
]