From 79fb898fb976455539a5289ee528287f1c5204d9 Mon Sep 17 00:00:00 2001 From: Code-Apprentice Date: Sun, 4 Sep 2022 00:02:52 -0700 Subject: [PATCH] Update primary key type in migrations --- api/migrations/0001_initial.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/migrations/0001_initial.py b/api/migrations/0001_initial.py index 29e6279..fe265ad 100644 --- a/api/migrations/0001_initial.py +++ b/api/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 3.1.7 on 2021-03-14 09:29 +# Generated by Django 3.2.15 on 2022-09-04 07:02 from django.conf import settings from django.db import migrations, models @@ -17,7 +17,7 @@ class Migration(migrations.Migration): migrations.CreateModel( name='BaseballCard', fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('autographed', models.BooleanField(default=False)), ('condition', models.CharField(max_length=32)), ('brand', models.CharField(max_length=32)), @@ -33,7 +33,7 @@ class Migration(migrations.Migration): migrations.CreateModel( name='Collection', fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('cards', models.ManyToManyField(to='api.BaseballCard')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ],