From ab132746e7acf75ca5b4b342dbfb059dbee28820 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Fri, 17 Nov 2023 10:42:55 +0100 Subject: [PATCH] Add TODO in migration scripts --- migrations/versions/31dd42e5ea6f_.py | 1 + migrations/versions/63b2cc26a01f_.py | 1 + 2 files changed, 2 insertions(+) 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')