diff options
| author | soryu <soryu@soryu.co> | 2026-01-29 12:26:00 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-01-29 12:26:00 +0000 |
| commit | 61017ee388320925dcce83f8edf8890666f791d2 (patch) | |
| tree | 8d1a2c30e7d1d6c0bd77712bee0f245c15bc1abd | |
| parent | 70cb975f225f3ff18b10534e8342cd62e0bf66ce (diff) | |
| download | soryu-61017ee388320925dcce83f8edf8890666f791d2.tar.gz soryu-61017ee388320925dcce83f8edf8890666f791d2.zip | |
Allow null phase configs for legacy contracts
| -rw-r--r-- | makima/src/db/models.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<String>, /// 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<PhaseConfig>, pub version: i32, |
