SELECT VERSION() returns 3.23.49 - log. Ancient. If anybody has got access to a version 4.0.4 mybe they could verify that the following does actually work, just so that we can establish a working version.
CREATE TABLE t1(
t1_id int(3) DEFAULT '0' NOT NULL auto_increment,
item_code int(3)...