Skip to content

Commit

Permalink
Merge pull request #62 from BaseballCardTracker/61-update-migrations
Browse files Browse the repository at this point in the history
Update primary key type in migrations
  • Loading branch information
codeguru42 authored Sep 9, 2022
2 parents c941ed0 + 79fb898 commit c137ee0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)),
Expand All @@ -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)),
],
Expand Down

0 comments on commit c137ee0

Please sign in to comment.