summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-06 09:13:56 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-06 09:13:56 +0100
commitaed33e90f6628b281cd1c8ae09f9bed38960a333 (patch)
tree40bf3196945406df0fda348a7106acde704a2539
parentf69262a6dc9a21e137b697df8ef353626bd0555d (diff)
downloadliberty-aed33e90f6628b281cd1c8ae09f9bed38960a333.tar.gz
liberty-aed33e90f6628b281cd1c8ae09f9bed38960a333.tar.bz2
liberty-aed33e90f6628b281cd1c8ae09f9bed38960a333.zip
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 <noreply@anthropic.com>
-rwxr-xr-xadmin/schema_inc.php2
1 files changed, 1 insertions, 1 deletions
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),