diff --git a/algosystem/backtesting/infrastructure/persistence/config.py b/algosystem/backtesting/infrastructure/persistence/config.py index b68fed2..f67802e 100644 --- a/algosystem/backtesting/infrastructure/persistence/config.py +++ b/algosystem/backtesting/infrastructure/persistence/config.py @@ -22,7 +22,7 @@ class DatabaseConfig: database: str user: str password: str - schema: str = "backtest" + schema: str = "research" pool_size: int = 5 def __post_init__(self) -> None: diff --git a/algosystem/backtesting/infrastructure/persistence/schema.py b/algosystem/backtesting/infrastructure/persistence/schema.py index 751107f..1f0c398 100644 --- a/algosystem/backtesting/infrastructure/persistence/schema.py +++ b/algosystem/backtesting/infrastructure/persistence/schema.py @@ -13,7 +13,7 @@ from algosystem.shared.errors import ConfigurationError from algosystem.shared.metric_key import MetricKey -DEFAULT_SCHEMA = "backtest" +DEFAULT_SCHEMA = "research" _IDENTIFIER_RE = re.compile(r"^[A-Za-z_][A-Za-z0-9_]*$") Base = declarative_base() diff --git a/tests/backtesting/infrastructure/persistence/test_config_schema.py b/tests/backtesting/infrastructure/persistence/test_config_schema.py index 9e01ce7..2cd20f3 100644 --- a/tests/backtesting/infrastructure/persistence/test_config_schema.py +++ b/tests/backtesting/infrastructure/persistence/test_config_schema.py @@ -20,7 +20,7 @@ def test_database_config_from_env_is_explicit_and_redacts_password(): assert config.host == "localhost" assert config.port == 5432 - assert config.schema == "backtest" + assert config.schema == "research" assert config.url() == "postgresql://tester:secret@localhost:5432/algosystem" assert "secret" not in repr(config) assert "" in repr(config)