Skip to content

Commit

Permalink
add migrations files
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurii-Durden committed Nov 18, 2024
1 parent a2b4171 commit f8e8488
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
29 changes: 29 additions & 0 deletions db/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Generated by Django 4.0.2 on 2024-11-18 18:12

from django.db import migrations, models


class Migration(migrations.Migration):

initial = True

dependencies = [
]

operations = [
migrations.CreateModel(
name='Actor',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('first_name', models.CharField(max_length=100)),
('last_name', models.CharField(max_length=100)),
],
),
migrations.CreateModel(
name='Genre',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=100)),
],
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 4.0.2 on 2024-11-18 18:17

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('db', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='actor',
name='first_name',
field=models.CharField(max_length=255),
),
migrations.AlterField(
model_name='actor',
name='last_name',
field=models.CharField(max_length=255),
),
migrations.AlterField(
model_name='genre',
name='name',
field=models.CharField(max_length=255),
),
]

0 comments on commit f8e8488

Please sign in to comment.