From 177d413f4cfd691ec8d8452b09c92f8c6d276699 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Thu, 30 Jun 2022 11:04:12 +0200 Subject: [PATCH] Use AutoField instead of BigAutoField --- bda/migrations/0021_auto_20220630_1103.py | 76 ++++++++++ bds/migrations/0008_alter_bdsprofile_id.py | 20 +++ clubs/migrations/0003_alter_club_id.py | 20 +++ events/migrations/0007_auto_20220630_1103.py | 55 +++++++ gestioasso/settings/common.py | 2 +- .../migrations/0021_auto_20220630_1103.py | 139 ++++++++++++++++++ .../0005_alter_genericteamtoken_id.py | 20 +++ .../migrations/0004_alter_memberteam_id.py | 20 +++ kfet/migrations/0082_auto_20220630_1103.py | 125 ++++++++++++++++ 9 files changed, 476 insertions(+), 1 deletion(-) create mode 100644 bda/migrations/0021_auto_20220630_1103.py create mode 100644 bds/migrations/0008_alter_bdsprofile_id.py create mode 100644 clubs/migrations/0003_alter_club_id.py create mode 100644 events/migrations/0007_auto_20220630_1103.py create mode 100644 gestioncof/migrations/0021_auto_20220630_1103.py create mode 100644 kfet/auth/migrations/0005_alter_genericteamtoken_id.py create mode 100644 kfet/cms/migrations/0004_alter_memberteam_id.py create mode 100644 kfet/migrations/0082_auto_20220630_1103.py diff --git a/bda/migrations/0021_auto_20220630_1103.py b/bda/migrations/0021_auto_20220630_1103.py new file mode 100644 index 00000000..df0aea3c --- /dev/null +++ b/bda/migrations/0021_auto_20220630_1103.py @@ -0,0 +1,76 @@ +# Generated by Django 3.2.13 on 2022-06-30 09:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("bda", "0020_auto_20220630_1035"), + ] + + operations = [ + migrations.AlterField( + model_name="attribution", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="categoriespectacle", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="choixspectacle", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="participant", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="quote", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="salle", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="spectacle", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="spectaclerevente", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="tirage", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + ] diff --git a/bds/migrations/0008_alter_bdsprofile_id.py b/bds/migrations/0008_alter_bdsprofile_id.py new file mode 100644 index 00000000..89c74d4e --- /dev/null +++ b/bds/migrations/0008_alter_bdsprofile_id.py @@ -0,0 +1,20 @@ +# Generated by Django 3.2.13 on 2022-06-30 09:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("bds", "0007_alter_bdsprofile_id"), + ] + + operations = [ + migrations.AlterField( + model_name="bdsprofile", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + ] diff --git a/clubs/migrations/0003_alter_club_id.py b/clubs/migrations/0003_alter_club_id.py new file mode 100644 index 00000000..92819ce7 --- /dev/null +++ b/clubs/migrations/0003_alter_club_id.py @@ -0,0 +1,20 @@ +# Generated by Django 3.2.13 on 2022-06-30 09:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("clubs", "0002_alter_club_id"), + ] + + operations = [ + migrations.AlterField( + model_name="club", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + ] diff --git a/events/migrations/0007_auto_20220630_1103.py b/events/migrations/0007_auto_20220630_1103.py new file mode 100644 index 00000000..6fc3502d --- /dev/null +++ b/events/migrations/0007_auto_20220630_1103.py @@ -0,0 +1,55 @@ +# Generated by Django 3.2.13 on 2022-06-30 09:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("events", "0006_auto_20220630_1035"), + ] + + operations = [ + migrations.AlterField( + model_name="event", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="extrafield", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="extrafieldcontent", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="option", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="optionchoice", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="registration", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + ] diff --git a/gestioasso/settings/common.py b/gestioasso/settings/common.py index b96f637e..13f2e5b1 100644 --- a/gestioasso/settings/common.py +++ b/gestioasso/settings/common.py @@ -111,7 +111,7 @@ DATABASES = { SITE_ID = 1 -DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" +DEFAULT_AUTO_FIELD = "django.db.models.AutoField" # --- # Internationalization diff --git a/gestioncof/migrations/0021_auto_20220630_1103.py b/gestioncof/migrations/0021_auto_20220630_1103.py new file mode 100644 index 00000000..3f1d7dcc --- /dev/null +++ b/gestioncof/migrations/0021_auto_20220630_1103.py @@ -0,0 +1,139 @@ +# Generated by Django 3.2.13 on 2022-06-30 09:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("gestioncof", "0020_auto_20220630_1036"), + ] + + operations = [ + migrations.AlterField( + model_name="calendarsubscription", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="club", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="cofprofile", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="event", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="eventcommentfield", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="eventcommentvalue", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="eventoption", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="eventoptionchoice", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="eventregistration", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="petitcoursability", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="petitcoursattribution", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="petitcoursattributioncounter", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="petitcoursdemande", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="petitcourssubject", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="survey", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="surveyanswer", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="surveyquestion", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="surveyquestionanswer", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + ] diff --git a/kfet/auth/migrations/0005_alter_genericteamtoken_id.py b/kfet/auth/migrations/0005_alter_genericteamtoken_id.py new file mode 100644 index 00000000..b6be0a0c --- /dev/null +++ b/kfet/auth/migrations/0005_alter_genericteamtoken_id.py @@ -0,0 +1,20 @@ +# Generated by Django 3.2.13 on 2022-06-30 09:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("kfetauth", "0004_alter_genericteamtoken_id"), + ] + + operations = [ + migrations.AlterField( + model_name="genericteamtoken", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + ] diff --git a/kfet/cms/migrations/0004_alter_memberteam_id.py b/kfet/cms/migrations/0004_alter_memberteam_id.py new file mode 100644 index 00000000..2ca24156 --- /dev/null +++ b/kfet/cms/migrations/0004_alter_memberteam_id.py @@ -0,0 +1,20 @@ +# Generated by Django 3.2.13 on 2022-06-30 09:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("kfetcms", "0003_alter_memberteam_id"), + ] + + operations = [ + migrations.AlterField( + model_name="memberteam", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + ] diff --git a/kfet/migrations/0082_auto_20220630_1103.py b/kfet/migrations/0082_auto_20220630_1103.py new file mode 100644 index 00000000..3be2cfe1 --- /dev/null +++ b/kfet/migrations/0082_auto_20220630_1103.py @@ -0,0 +1,125 @@ +# Generated by Django 3.2.13 on 2022-06-30 09:03 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("kfet", "0081_auto_20220628_1621"), + ] + + operations = [ + migrations.AlterField( + model_name="account", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="accountnegative", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="article", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="articlecategory", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="checkout", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="checkoutstatement", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="inventory", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="inventoryarticle", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="operation", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="operationgroup", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="order", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="orderarticle", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="supplier", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="supplierarticle", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="transfer", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + migrations.AlterField( + model_name="transfergroup", + name="id", + field=models.AutoField( + auto_created=True, primary_key=True, serialize=False, verbose_name="ID" + ), + ), + ]