summaryrefslogtreecommitdiffstats
path: root/databaseReset.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2021-04-04 01:44:41 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2021-04-04 01:44:41 +0100
commit53fef140240a90f6b434d0146dff18fc139c2cc3 (patch)
treefe7c2d5da3771f94bb216bbc6ecdf4b620fea96c /databaseReset.py
parentc08356876df99b43322a11eae1571cf11fba6c6a (diff)
downloadtroggle-53fef140240a90f6b434d0146dff18fc139c2cc3.tar.gz
troggle-53fef140240a90f6b434d0146dff18fc139c2cc3.tar.bz2
troggle-53fef140240a90f6b434d0146dff18fc139c2cc3.zip
transaction incompatible with migrate Django 2+
Diffstat (limited to 'databaseReset.py')
-rw-r--r--databaseReset.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/databaseReset.py b/databaseReset.py
index 3f76f11..1d66706 100644
--- a/databaseReset.py
+++ b/databaseReset.py
@@ -95,10 +95,10 @@ def reinit_db():
print(" - Migrating: " + django.db.connections.databases['default']['NAME'])
if django.db.connections.databases['default']['ENGINE'] == 'django.db.backends.sqlite3':
- with transaction.atomic():
- management.call_command('makemigrations','core', interactive=False)
- management.call_command('migrate', interactive=False)
- management.call_command('migrate','core', interactive=False)
+ #with transaction.atomic():
+ management.call_command('makemigrations','core', interactive=False)
+ management.call_command('migrate', interactive=False)
+ management.call_command('migrate','core', interactive=False)
else:
management.call_command('makemigrations','core', interactive=False)
management.call_command('migrate', interactive=False)