From 61017ee388320925dcce83f8edf8890666f791d2 Mon Sep 17 00:00:00 2001 From: soryu Date: Thu, 29 Jan 2026 12:26:00 +0000 Subject: Allow null phase configs for legacy contracts --- makima/src/db/models.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'makima/src/db') diff --git a/makima/src/db/models.rs b/makima/src/db/models.rs index 2eeba87..2236ad5 100644 --- a/makima/src/db/models.rs +++ b/makima/src/db/models.rs @@ -1459,7 +1459,7 @@ pub struct Contract { pub red_team_prompt: Option, /// Phase configuration copied from template at contract creation. /// When present, this overrides the built-in contract type phases. - #[sqlx(json)] + #[sqlx(json, default)] #[serde(skip_serializing_if = "Option::is_none")] pub phase_config: Option, pub version: i32, -- cgit v1.2.3