mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
Many queries, including the default ordering, for the LogEntry model rely on the timestamp field. Adding an index will ensure reasonable scalability for large audit logs.
20 lines
483 B
Python
20 lines
483 B
Python
# Generated by Django 4.0.3 on 2022-03-11 23:16
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("auditlog", "0009_alter_logentry_additional_data"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterField(
|
|
model_name="logentry",
|
|
name="timestamp",
|
|
field=models.DateTimeField(
|
|
auto_now_add=True, db_index=True, verbose_name="timestamp"
|
|
),
|
|
),
|
|
]
|