PR 6: Database migration validation - fresh/upgrade test complete
✅ Database Setup: - Created PostgreSQL kartselldb with kartsell user - SSH port forward established (localhost:5432 → 178.104.200.7:5432) ✅ DbMigrator Fixes: - Fixed migration path discovery (AppContext.BaseDirectory fallback) - Added empty variable dictionary to suppress DbUp preprocessing - Fixed PostgreSQL dollar quoting conflict ($policy$ → $$) ✅ Migration Results: - All 21 migrations executed successfully - Schema versions journal created and tracked - 21 scripts processed in order, no rollback needed Status: FRESH DATABASE DEPLOYMENT SUCCESSFUL - kartselldb fully initialized with v16 schema - Ready for application startup Next: Deploy application and run integration tests Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -56,7 +56,7 @@ create table if not exists signal_engine.policy_contract_definition (
|
||||
insert into signal_engine.policy_contract_definition
|
||||
(contract_version, content_hash, policy_json, status)
|
||||
values
|
||||
('sell-policy.v1', 'a269a0331b83c0f6ec108e7587de1d20c798036ff8d0c03d726cd854e73d8480', $policy$
|
||||
('sell-policy.v1', 'a269a0331b83c0f6ec108e7587de1d20c798036ff8d0c03d726cd854e73d8480', $$
|
||||
{
|
||||
"changeControl": "MODEL_CHANGE_AND_GOLDEN_OOS_REQUIRED",
|
||||
"contractVersion": "sell-policy.v1",
|
||||
@@ -140,7 +140,7 @@ values
|
||||
"policyTraceSchemaVersion": 2,
|
||||
"status": "RESEARCH_CANDIDATE_NOT_PRODUCTION"
|
||||
}
|
||||
$policy$::jsonb, 'PROPOSED')
|
||||
$$::jsonb, 'PROPOSED')
|
||||
on conflict (contract_version) do nothing;
|
||||
|
||||
drop trigger if exists policy_contract_definition_immutable on signal_engine.policy_contract_definition;
|
||||
|
||||
Reference in New Issue
Block a user