To make the script working with mysql (is seems not working otherwise?), here is a patch 4c4 < event_id BIGINT DEFAULT 0 NOT NULL, --- > event_id BIGINT DEFAULT '0' NOT NULL, 19c19 < event_alarm INT DEFAULT 0, --- > event_alarm INT DEFAULT '0',