Skip to content
Snippets Groups Projects
Commit e117a150 authored by Erwan Rouchet's avatar Erwan Rouchet Committed by Bastien Abadie
Browse files

Early return in migration

parent 4eb1ed4f
No related branches found
No related tags found
No related merge requests found
......@@ -9,9 +9,12 @@ from arkindex.dataimport.models import RepositoryType
def migrate_data_sources(apps, schema_editor):
DataSource = apps.get_model('documents', 'DataSource')
if not DataSource.objects.exists():
return
repo_prefix = os.environ.get('REPOSITORY_PREFIX', 'https://gitlab.com/teklia/workers')
DataSource = apps.get_model('documents', 'DataSource')
Element = apps.get_model('documents', 'Element')
Classification = apps.get_model('documents', 'Classification')
Transcription = apps.get_model('documents', 'Transcription')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment