SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;

CREATE TABLE `%tablename%`
(
    `id`                int NOT NULL AUTO_INCREMENT,
    `event_id`          int(11) NOT NULL,
    `addon_name`        VARCHAR(2048)  NOT NULL,
    `addon_description` VARCHAR(2048)  NOT NULL,
    `addon_amount`      decimal(8, 2) DEFAULT NULL,
    PRIMARY KEY  (id)

) %charset%;

ALTER TABLE `%tablename%`
    ADD PRIMARY KEY (`id`);


ALTER TABLE `%tablename%`
    MODIFY `id` int NOT NULL AUTO_INCREMENT;

COMMIT;
