From 7fe73d725c56a96e31310ff282c07ceb83ffd55a Mon Sep 17 00:00:00 2001 From: "Bobby (aider)" Date: Tue, 11 Feb 2025 18:31:15 -0800 Subject: [PATCH] fix: Remove DROP TABLE command to preserve trading plan data --- src/trading/trading_plan.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/trading/trading_plan.py b/src/trading/trading_plan.py index e917bf6..f925e51 100644 --- a/src/trading/trading_plan.py +++ b/src/trading/trading_plan.py @@ -78,10 +78,7 @@ def create_trading_plan_table(): """Create the trading plans table if it doesn't exist""" with create_client() as client: try: - # Drop the table if it exists to ensure a clean creation - client.command("DROP TABLE IF EXISTS trading_plans") - - # Create new table with a simple structure + # Create new table with a simple structure if it doesn't exist query = """ CREATE TABLE IF NOT EXISTS trading_plans (