From ac3def06723a6ffdce3336dbfa5b88490eccd3e6 Mon Sep 17 00:00:00 2001 From: Fibonacci Date: Wed, 11 Dec 2024 16:05:48 +0200 Subject: [PATCH] Complated --- db/migrations/0001_initial.py | 29 +++++++++++++++++++ ...002_rename_name_of_the_genre_genre_name.py | 18 ++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 db/migrations/0001_initial.py create mode 100644 db/migrations/0002_rename_name_of_the_genre_genre_name.py diff --git a/db/migrations/0001_initial.py b/db/migrations/0001_initial.py new file mode 100644 index 00000000..b0480432 --- /dev/null +++ b/db/migrations/0001_initial.py @@ -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)), + ], + ), + ] diff --git a/db/migrations/0002_rename_name_of_the_genre_genre_name.py b/db/migrations/0002_rename_name_of_the_genre_genre_name.py new file mode 100644 index 00000000..255e9f7f --- /dev/null +++ b/db/migrations/0002_rename_name_of_the_genre_genre_name.py @@ -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', + ), + ]