From e63e9bac95a599e039103e4ec4136a51cdca2f67 Mon Sep 17 00:00:00 2001 From: Dani Sastre Date: Fri, 21 Jun 2024 11:18:35 +0200 Subject: [PATCH] Use `BigAutoField` and migrate all existing auto fields to it --- django_yubin/apps.py | 3 +- ...cklist_id_alter_log_id_alter_message_id.py | 28 +++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 django_yubin/migrations/0012_alter_blacklist_id_alter_log_id_alter_message_id.py diff --git a/django_yubin/apps.py b/django_yubin/apps.py index ce03f8e..d90f1fe 100644 --- a/django_yubin/apps.py +++ b/django_yubin/apps.py @@ -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 diff --git a/django_yubin/migrations/0012_alter_blacklist_id_alter_log_id_alter_message_id.py b/django_yubin/migrations/0012_alter_blacklist_id_alter_log_id_alter_message_id.py new file mode 100644 index 0000000..1a32e26 --- /dev/null +++ b/django_yubin/migrations/0012_alter_blacklist_id_alter_log_id_alter_message_id.py @@ -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'), + ), + ]