SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; INSERT INTO `{{tableName}}` (`title`, `image`, `sorter`, `enabled`, `added`, `changed`) VALUES ('test row generation', NULL, 0, 'y', NOW(), NOW()); DELETE FROM `{{tablePageItemType}}` WHERE `{{tablePageItemType}}`.`type` = '{{itemType}}'; INSERT INTO `{{tablePageItemType}}` (`type`, `title`, `sorter`) VALUES ('{{itemType}}', '{{itemTitle}}', {{itemSorter}});