mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Migrate LogEntry.object_id to bigint (#5520)
This commit is contained in:
18
src/pretix/base/migrations/0291_alter_logentry_object_id.py
Normal file
18
src/pretix/base/migrations/0291_alter_logentry_object_id.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.2.16 on 2025-10-06 16:42
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("pretixbase", "0290_invoice_plugin_data"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="logentry",
|
||||
name="object_id",
|
||||
field=models.PositiveBigIntegerField(db_index=True),
|
||||
),
|
||||
]
|
||||
@@ -66,7 +66,7 @@ class LogEntry(models.Model):
|
||||
:type data: str
|
||||
"""
|
||||
content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE)
|
||||
object_id = models.PositiveIntegerField(db_index=True)
|
||||
object_id = models.PositiveBigIntegerField(db_index=True)
|
||||
content_object = GenericForeignKey('content_type', 'object_id')
|
||||
datetime = models.DateTimeField(auto_now_add=True)
|
||||
user = models.ForeignKey('User', null=True, blank=True, on_delete=models.PROTECT)
|
||||
|
||||
Reference in New Issue
Block a user