Bug 7792:redefine the field branchcode as PRIMARY KEY of branches