[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-01-19 17:36:55 +00:00
parent 70e7d639c8
commit 9e770f5cae

View file

@ -126,15 +126,13 @@ class Command(BaseCommand):
def postgres():
with connection.cursor() as cursor:
cursor.execute(
f"""
cursor.execute(f"""
UPDATE {LogEntry._meta.db_table}
SET changes="changes_text"::jsonb
WHERE changes_text IS NOT NULL
AND changes_text <> ''
AND changes IS NULL
"""
)
""")
return cursor.cursor.rowcount
if database == "postgres":