From f8e8488d6cfa73144d90ca040045c344480e01d7 Mon Sep 17 00:00:00 2001 From: yura Date: Mon, 18 Nov 2024 20:31:46 +0200 Subject: [PATCH] add migrations files --- db/migrations/0001_initial.py | 29 +++++++++++++++++++ ...rst_name_alter_actor_last_name_and_more.py | 28 ++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 db/migrations/0001_initial.py create mode 100644 db/migrations/0002_alter_actor_first_name_alter_actor_last_name_and_more.py diff --git a/db/migrations/0001_initial.py b/db/migrations/0001_initial.py new file mode 100644 index 00000000..f0face77 --- /dev/null +++ b/db/migrations/0001_initial.py @@ -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)), + ], + ), + ] diff --git a/db/migrations/0002_alter_actor_first_name_alter_actor_last_name_and_more.py b/db/migrations/0002_alter_actor_first_name_alter_actor_last_name_and_more.py new file mode 100644 index 00000000..5d7ee85b --- /dev/null +++ b/db/migrations/0002_alter_actor_first_name_alter_actor_last_name_and_more.py @@ -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), + ), + ]