From a0d0461f06936453d8ebe177ab8c2b2117988163 Mon Sep 17 00:00:00 2001 From: wispem-wantex Date: Mon, 26 Jan 2026 16:00:19 -0800 Subject: [PATCH] codegen: handle nullable foreign keys using 'ifnull' and add a test case for them --- ops/gas_init_test.sh | 5 ++++- pkg/codegen/modelgenerate/generate_model.go | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ops/gas_init_test.sh b/ops/gas_init_test.sh index 5d1c2ef..f94ac45 100755 --- a/ops/gas_init_test.sh +++ b/ops/gas_init_test.sh @@ -31,9 +31,12 @@ cd $test_project # Create a new table in the schema cat >> pkg/db/schema.sql <