Skip to content

Commit

Permalink
Complated
Browse files Browse the repository at this point in the history
  • Loading branch information
Volokitin-Vitaliy committed Dec 11, 2024
1 parent ba8cd84 commit ac3def0
Show file tree
Hide file tree
Showing 2 changed files with 47 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-12-11 07:16

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=255)),
('last_name', models.CharField(max_length=255)),
],
),
migrations.CreateModel(
name='Genre',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name_of_the_genre', models.CharField(max_length=255)),
],
),
]
18 changes: 18 additions & 0 deletions db/migrations/0002_rename_name_of_the_genre_genre_name.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.0.2 on 2024-12-11 07:57

from django.db import migrations


class Migration(migrations.Migration):

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

operations = [
migrations.RenameField(
model_name='genre',
old_name='name_of_the_genre',
new_name='name',
),
]

0 comments on commit ac3def0

Please sign in to comment.