Skip to content

Commit 7174c30

Browse files
committed
migration logging
1 parent 3ced0b2 commit 7174c30

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

backend/alembic/versions/62c3a055a141_add_file_names_to_file_connector_config.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import sqlalchemy as sa
1111
import json
1212
import os
13+
import logging
1314

1415

1516
# revision identifiers, used by Alembic.
@@ -22,11 +23,16 @@
2223
os.environ.get("SKIP_FILE_NAME_MIGRATION", "true").lower() == "true"
2324
)
2425

26+
logger = logging.getLogger("alembic.runtime.migration")
27+
2528

2629
def upgrade() -> None:
2730
if SKIP_FILE_NAME_MIGRATION:
31+
logger.info(
32+
"Skipping file name migration. Hint: set SKIP_FILE_NAME_MIGRATION=false to run this migration"
33+
)
2834
return
29-
35+
logger.info("Running file name migration")
3036
# Get connection
3137
conn = op.get_bind()
3238

0 commit comments

Comments
 (0)