rebuild(runtime): govern market operations and job truth
This commit is contained in:
@@ -110,7 +110,7 @@ def test_real_account_schema_can_upgrade_and_rollback(tmp_path) -> None:
|
||||
database = Database(tmp_path / "app.db")
|
||||
runner = MigrationRunner(database)
|
||||
|
||||
assert runner.upgrade(MIGRATIONS) == (1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
|
||||
assert runner.upgrade(MIGRATIONS) == (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
|
||||
assert {
|
||||
"users",
|
||||
"memberships",
|
||||
@@ -144,9 +144,12 @@ def test_real_account_schema_can_upgrade_and_rollback(tmp_path) -> None:
|
||||
"trade_entries",
|
||||
"alerts",
|
||||
"review_assistant_messages",
|
||||
"job_runs",
|
||||
"market_event_revisions",
|
||||
} <= table_names(database)
|
||||
|
||||
assert runner.downgrade(MIGRATIONS, target_version=0) == (
|
||||
11,
|
||||
10,
|
||||
9,
|
||||
8,
|
||||
|
||||
Reference in New Issue
Block a user