Fix: Postgres selection, DBENGINE and migrations (#12299)

This commit is contained in:
Trenton H
2026-03-11 11:54:24 -07:00
committed by GitHub
parent b7b9e83f37
commit 86fa74c115
25 changed files with 41 additions and 49 deletions
@@ -0,0 +1,25 @@
# Generated by Django 5.2.6 on 2026-01-24 07:33
import django.db.models.functions.text
from django.db import migrations
from django.db import models
class Migration(migrations.Migration):
dependencies = [
("documents", "0005_alter_document_checksum_unique"),
]
operations = [
migrations.AddField(
model_name="document",
name="content_length",
field=models.GeneratedField(
db_persist=True,
expression=django.db.models.functions.text.Length("content"),
null=False,
help_text="Length of the content field in characters. Automatically maintained by the database for faster statistics computation.",
output_field=models.PositiveIntegerField(default=0),
),
),
]