Skip to content

Commit

Permalink
Use BigAutoField and migrate all existing auto fields to it
Browse files Browse the repository at this point in the history
  • Loading branch information
sastred committed Jun 21, 2024
1 parent a7e3d53 commit e63e9ba
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
3 changes: 2 additions & 1 deletion django_yubin/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

class YubinConfig(AppConfig):
name = 'django_yubin'
verbose_name = "Django Yubin"
verbose_name = 'Django Yubin'
default_auto_field = 'django.db.models.BigAutoField'

def ready(self):
from . import signals # noqa
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 4.2.4 on 2024-06-21 08:59

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('django_yubin', '0011_message_bcc_address_message_cc_address_and_more'),
]

operations = [
migrations.AlterField(
model_name='blacklist',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
),
migrations.AlterField(
model_name='log',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
),
migrations.AlterField(
model_name='message',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
),
]

0 comments on commit e63e9ba

Please sign in to comment.