$dbh->do("
ALTER TABLE aqorders
ADD COLUMN branch VARCHAR(10) DEFAULT NULL,
ADD CONSTRAINT aqorders_ibfk_3 FOREIGN KEY (branch)
ADD CONSTRAINT aqorders_branch FOREIGN KEY (branch)
REFERENCES branches (branchcode) ON UPDATE CASCADE ON DELETE SET NULL
");
-