Topic: DB Schema anomalies
The PRIMARY KEY of the 0_bom table in both FA 2.3 and FA 2.4 is part of the list below:
PRIMARY KEY (`parent`,`component`,`workcentre_added`,`loc_code`),
KEY `component` (`component`),
KEY `id` (`id`),
KEY `loc_code` (`loc_code`),
KEY `parent` (`parent`,`loc_code`),
KEY `workcentre_added` (`workcentre_added`)
It can be re-arranged like this to save an index that would then have become redundant:
PRIMARY KEY (`parent`,`loc_code`,`component`,`workcentre_added`),
KEY `component` (`component`),
KEY `id` (`id`),
KEY `loc_code` (`loc_code`),
KEY `workcentre_added` (`workcentre_added`)
Also why have the erstwhile VARCHAR fields like loc_code and some other fields now become CHAR in FA 2.4?