You could try and manually execute the commands to see which one is creating those errors.CREATE TABLE IF NOT EXISTS `ost_ticket_relation` (
`id` int(11) NOT NULL,
`agent_id` int(11) NOT NULL,
`master_id` int(11) NOT NULL,
`ticket_id` int(11) NOT NULL,
`date_merged` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;ALTER TABLE `ost_ticket_relation`
ADD PRIMARY KEY (`id`);ALTER TABLE `ost_ticket_relation`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;