Forráskód Böngészése

[desktop] Only sync documents if we're not doing a dry run

Erick Tryzelaar 10 éve
szülő
commit
059af678c0

+ 2 - 1
desktop/core/src/desktop/migrations/0007_auto__add_documentpermission__add_documenttag__add_document.py

@@ -73,7 +73,8 @@ class Migration(SchemaMigration):
             ))
             db.create_unique('desktop_document_tags', ['document_id', 'documenttag_id'])
 
-        Document.objects.sync()
+        if not db.dry_run:
+            Document.objects.sync()
 
     def backwards(self, orm):