From d652f2773f18dd917d5d533f6e79e8e6ee0d4f3f Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 27 Oct 2024 18:08:27 -0700 Subject: [PATCH] Revert "Wrap in db transaction" This reverts commit 994da760d70cd354caa973f3e57096ad30064573. --- src/documents/management/commands/convert_mariadb_uuid.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/documents/management/commands/convert_mariadb_uuid.py b/src/documents/management/commands/convert_mariadb_uuid.py index 86c093700..4000e67cb 100644 --- a/src/documents/management/commands/convert_mariadb_uuid.py +++ b/src/documents/management/commands/convert_mariadb_uuid.py @@ -1,7 +1,6 @@ from django.core.management.base import BaseCommand from django.db import connection from django.db import models -from django.db import transaction from documents.models import Document @@ -34,5 +33,4 @@ class Command(BaseCommand): ) def handle(self, **options): - with transaction.atomic(): - self.convert_field(Document, "transaction_id", null=True) + self.convert_field(Document, "transaction_id", null=True)