Problem
sp_logActivity omits newer tblActivityLog columns (incl. migration-009 scanSource/qrCodeExternalID) and can fail the NOT NULL ipAddress constraint, with errors swallowed by its handler. It is currently dead code — the app uses a direct INSERT.
Fix
Either sync the procedure (add IFNULL(inputIP,'0.0.0.0') and the new columns) or remove it and adjust any references.
Acceptance criteria
From the 2026-06-04 schema review — see docs/SCHEMA_REVIEW_2026-06-04.md.
Problem
sp_logActivityomits newertblActivityLogcolumns (incl. migration-009scanSource/qrCodeExternalID) and can fail theNOT NULL ipAddressconstraint, with errors swallowed by its handler. It is currently dead code — the app uses a direct INSERT.Fix
Either sync the procedure (add
IFNULL(inputIP,'0.0.0.0')and the new columns) or remove it and adjust any references.Acceptance criteria
tblActivityLogshape or is removed.From the 2026-06-04 schema review — see
docs/SCHEMA_REVIEW_2026-06-04.md.