diff --git a/migrations/versions/31dd42e5ea6f_.py b/migrations/versions/31dd42e5ea6f_.py index e597b36e..02a65ea1 100644 --- a/migrations/versions/31dd42e5ea6f_.py +++ b/migrations/versions/31dd42e5ea6f_.py @@ -20,6 +20,7 @@ depends_on = None def upgrade(): + # TODO: Add error handling for sqlalchemy.exc.ProgrammingError for user in User.query.all(): spacy_nlp_pipeline_models_dir = os.path.join(user.path, 'spacy_nlp_pipeline_models') if os.path.exists(spacy_nlp_pipeline_models_dir): diff --git a/migrations/versions/63b2cc26a01f_.py b/migrations/versions/63b2cc26a01f_.py index 8f33049f..88ae239f 100644 --- a/migrations/versions/63b2cc26a01f_.py +++ b/migrations/versions/63b2cc26a01f_.py @@ -17,6 +17,7 @@ depends_on = None def upgrade(): + # TODO: Add error handling for sqlalchemy.exc.ProgrammingError for user in User.query.all(): old_tesseract_ocr_pipeline_model_path = os.path.join(user.path, 'tesseract_ocr_models') new_tesseract_ocr_pipeline_model_path = os.path.join(user.path, 'tesseract_ocr_pipeline_models')