From a4bf1530972ffc7f53bb2074f0e2280c07407432 Mon Sep 17 00:00:00 2001 From: "Bobby (aider)" Date: Tue, 11 Feb 2025 07:10:14 -0800 Subject: [PATCH] feat: Add run_migration.py to resolve Python module import issues --- src/run_migration.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/run_migration.py diff --git a/src/run_migration.py b/src/run_migration.py new file mode 100644 index 0000000..2a0bb2a --- /dev/null +++ b/src/run_migration.py @@ -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()