소스 검색

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

Erick Tryzelaar 10 년 전
부모
커밋
059af678c0
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      desktop/core/src/desktop/migrations/0007_auto__add_documentpermission__add_documenttag__add_document.py

+ 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):