-- Run once in phpMyAdmin.
-- 1) Direct-weighing lines have no weighings: allow NULL (they were saved as 0, which the foreign key rejects).
ALTER TABLE tblTransaction_Item_Line MODIFY from_weighing_id BIGINT NULL, MODIFY to_weighing_id BIGINT NULL;
-- 2) SuperAdmin switch: may typing a new name on New Transaction add it to the master data?
ALTER TABLE tblTransaction_Setting ADD COLUMN allow_new_master_entries TINYINT(1) NOT NULL DEFAULT 0;
