CREATE TABLE IF NOT EXISTS m_template_thumb (
    id INT(11) NOT NULL AUTO_INCREMENT,
    filename VARCHAR(128) NOT NULL DEFAULT 'no-picture.png',
    PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;

ALTER TABLE `m_template` ADD `thumb_filename` VARCHAR(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'no-picture.png' AFTER `content_txt`;