From 9fba816c91061dbb6425303809b0b6b29ed297da Mon Sep 17 00:00:00 2001 From: Salman Ashraf Date: Wed, 10 Jul 2024 10:58:19 +0000 Subject: [PATCH] Fix migration issue --- api/migrations/0001_initial.py | 27 +++++++++++++++++++++++++++ api/migrations/0004_delete_fruit.py | 16 ++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 api/migrations/0001_initial.py create mode 100644 api/migrations/0004_delete_fruit.py diff --git a/api/migrations/0001_initial.py b/api/migrations/0001_initial.py new file mode 100644 index 0000000..c169fca --- /dev/null +++ b/api/migrations/0001_initial.py @@ -0,0 +1,27 @@ +# Generated by Django 3.2.25 on 2024-07-02 15:57 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Fruit', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('name', models.CharField(max_length=50, verbose_name='name')), + ('is_citrus', models.BooleanField(verbose_name='is citrus')), + ('expires_on', models.DateField(verbose_name='expires on')), + ], + options={ + 'verbose_name': 'fruit', + 'verbose_name_plural': 'fruits', + }, + ), + ] diff --git a/api/migrations/0004_delete_fruit.py b/api/migrations/0004_delete_fruit.py new file mode 100644 index 0000000..9fad9bd --- /dev/null +++ b/api/migrations/0004_delete_fruit.py @@ -0,0 +1,16 @@ +# Generated by Django 3.2.25 on 2024-07-10 10:57 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('api', '0003_auto_20240709_1347'), + ] + + operations = [ + migrations.DeleteModel( + name='Fruit', + ), + ]