Skip to content
Snippets Groups Projects
Verified Commit 3b2db8ae authored by Erwan Rouchet's avatar Erwan Rouchet
Browse files

Early return in migration

parent d9078b27
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