feat: Add run_migration.py to resolve Python module import issues

This commit is contained in:
Bobby (aider) 2025-02-11 07:10:14 -08:00
parent 8c11af9c05
commit a4bf153097

12
src/run_migration.py Normal file
View File

@ -0,0 +1,12 @@
import sys
from pathlib import Path
# Add the src directory to the Python path
src_path = str(Path(__file__).parent)
if src_path not in sys.path:
sys.path.append(src_path)
from migrations.add_direction_field import migrate_trades
if __name__ == "__main__":
migrate_trades()