fix(pk field): Make manage.py makemigrations happy

This commit is contained in:
sinavir 2024-07-02 22:50:54 +02:00
parent fee31ab07b
commit 89f2808087
4 changed files with 98 additions and 0 deletions

View file

@ -190,4 +190,7 @@ MEDIA_URL = "/media/"
STATIC_ROOT = os.path.join(PUBLIC_DIR, "static")
MEDIA_ROOT = os.path.join(PUBLIC_DIR, "media")
# Default primary key field type
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"

View file

@ -0,0 +1,48 @@
# Generated by Django 4.2.11 on 2024-07-02 20:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("inventory", "0004_alter_category_options_alter_gameloan_options_and_more"),
]
operations = [
migrations.AlterField(
model_name="category",
name="id",
field=models.BigAutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
migrations.AlterField(
model_name="game",
name="id",
field=models.BigAutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
migrations.AlterField(
model_name="gamecomment",
name="id",
field=models.BigAutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
migrations.AlterField(
model_name="gameloan",
name="id",
field=models.BigAutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
migrations.AlterField(
model_name="tag",
name="id",
field=models.BigAutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
]

View file

@ -0,0 +1,27 @@
# Generated by Django 4.2.11 on 2024-07-02 20:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("suggestions", "0002_duration_range"),
]
operations = [
migrations.AlterField(
model_name="suggestion",
name="id",
field=models.BigAutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
migrations.AlterField(
model_name="suggestioncomment",
name="id",
field=models.BigAutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
]

View file

@ -0,0 +1,20 @@
# Generated by Django 4.2.11 on 2024-07-02 20:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("website", "0001_initial"),
]
operations = [
migrations.AlterField(
model_name="markdownpage",
name="id",
field=models.BigAutoField(
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
),
),
]