From aed33e90f6628b281cd1c8ae09f9bed38960a333 Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Sat, 6 Jun 2026 09:13:56 +0100 Subject: liberty_xref.xorder: add DEFAULT 0 NOTNULL constraint Prevents NULL xorder from import paths that omit the column, which causes the CASE expression building xref_title to return NULL. Co-Authored-By: Claude Sonnet 4.6 --- admin/schema_inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/schema_inc.php b/admin/schema_inc.php index 19d1182..fd0968e 100755 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -245,7 +245,7 @@ $tables = [ xref_id I8 PRIMARY, content_id I8 NOTNULL, item C(20), - xorder I2, + xorder I2 DEFAULT 0 NOTNULL, xref I8, xkey C(32), xkey_ext C(250), -- cgit v1.3