Skip to content

Commit

Permalink
Fix migration issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SalmanAsh committed Jul 10, 2024
1 parent 93f7398 commit 9fba816
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
27 changes: 27 additions & 0 deletions api/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -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',
},
),
]
16 changes: 16 additions & 0 deletions api/migrations/0004_delete_fruit.py
Original file line number Diff line number Diff line change
@@ -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',
),
]

0 comments on commit 9fba816

Please sign in to comment.