fix: Remove DROP TABLE command to preserve trading plan data
This commit is contained in:
parent
74e1d43936
commit
7fe73d725c
@ -78,10 +78,7 @@ def create_trading_plan_table():
|
|||||||
"""Create the trading plans table if it doesn't exist"""
|
"""Create the trading plans table if it doesn't exist"""
|
||||||
with create_client() as client:
|
with create_client() as client:
|
||||||
try:
|
try:
|
||||||
# Drop the table if it exists to ensure a clean creation
|
# Create new table with a simple structure if it doesn't exist
|
||||||
client.command("DROP TABLE IF EXISTS trading_plans")
|
|
||||||
|
|
||||||
# Create new table with a simple structure
|
|
||||||
query = """
|
query = """
|
||||||
CREATE TABLE IF NOT EXISTS trading_plans
|
CREATE TABLE IF NOT EXISTS trading_plans
|
||||||
(
|
(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user