diff --git a/django_lostplaces/lostplaces/migrations/0002_remove_vouchers.py b/django_lostplaces/lostplaces/migrations/0002_remove_vouchers.py deleted file mode 100644 index d3727d9..0000000 --- a/django_lostplaces/lostplaces/migrations/0002_remove_vouchers.py +++ /dev/null @@ -1,22 +0,0 @@ - # Generated by Django 3.1.1 on 2020-10-04 19:37 - # Edited by reverend - - import datetime - from django.db import migrations, models - import django.utils.timezone - from django.utils.timezone import utc - - class Migration(migrations.Migration): - - dependencies = [ - ('lostplaces', '0001_initial'), - ] - - operations = [ - migrations.DeleteModel( - name='Voucher' - ), - migrations.DeleteModel( - name='Expireable' - ) - ] \ No newline at end of file diff --git a/django_lostplaces/lostplaces/migrations/0002_reomve_vouchers.py b/django_lostplaces/lostplaces/migrations/0002_reomve_vouchers.py new file mode 100644 index 0000000..d87ac47 --- /dev/null +++ b/django_lostplaces/lostplaces/migrations/0002_reomve_vouchers.py @@ -0,0 +1,22 @@ +# Generated by Django 3.1.1 on 2020-10-04 19:37 +# Edited by reverend + +import datetime +from django.db import migrations, models +import django.utils.timezone +from django.utils.timezone import utc + +class Migration(migrations.Migration): + + dependencies = [ + ('lostplaces', '0001_initial'), + ] + + operations = [ + migrations.DeleteModel( + name='Voucher' + ), + migrations.DeleteModel( + name='Expireable' + ) + ] \ No newline at end of file diff --git a/django_lostplaces/lostplaces/migrations/0003_voucher.py b/django_lostplaces/lostplaces/migrations/0003_voucher.py index 40299a3..b4be5d8 100644 --- a/django_lostplaces/lostplaces/migrations/0003_voucher.py +++ b/django_lostplaces/lostplaces/migrations/0003_voucher.py @@ -1,25 +1,25 @@ - # Generated by Django 3.1.1 on 2020-10-04 19:52 +# Generated by Django 3.1.1 on 2020-10-04 19:52 - from django.db import migrations, models +from django.db import migrations, models - class Migration(migrations.Migration): +class Migration(migrations.Migration): - dependencies = [ - ('lostplaces', '0002_reomve_vouchers'), - ] + dependencies = [ + ('lostplaces', '0002_reomve_vouchers'), + ] - operations = [ - migrations.CreateModel( - name='Voucher', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('created_when', models.DateTimeField(auto_now_add=True)), - ('expires_when', models.DateTimeField()), - ('code', models.CharField(max_length=30, unique=True)), - ], - options={ - 'abstract': False, - }, - ), - ] \ No newline at end of file + operations = [ + migrations.CreateModel( + name='Voucher', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created_when', models.DateTimeField(auto_now_add=True)), + ('expires_when', models.DateTimeField()), + ('code', models.CharField(max_length=30, unique=True)), + ], + options={ + 'abstract': False, + }, + ), + ] \ No newline at end of file