fix: Remove DROP TABLE command to preserve trading plan data

This commit is contained in:
Bobby (aider) 2025-02-11 18:31:15 -08:00
parent 74e1d43936
commit 7fe73d725c

View File

@ -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
(