DO NOT ADD 'DraftPage' to SanityCheckFileRegistry table !!! DROP TABLE IF EXISTS `qs_SanityCheckFileRegistry`; CREATE TABLE `qs_SanityCheckFileRegistry` ( `tableAlias` VARCHAR(50) NOT NULL, `fieldName` VARCHAR(50) NOT NULL, `pageQuery` VARCHAR(255) NULL DEFAULT NULL, PRIMARY KEY(`tableAlias`, `fieldName`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; INSERT INTO `qs_SanityCheckFileRegistry` (`tableAlias`, `fieldName`, `pageQuery`) VALUES ('Gallery', 'image', ''), ('GalleryCategory', 'image', ''), ('Manufacturer', 'image', ''), ('News', 'image', ''), ('News', 'file', ''), ('Page', 'headerImage', ''), ('People', 'image', ''), ('Slide', 'image', ''), ('Slide', 'backgroundImage', ''), ('SocialLink', 'image', ''); DROP TABLE IF EXISTS `qs_SanityCheckAppFile`; CREATE TABLE `qs_SanityCheckAppFile` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `tableAlias` VARCHAR(50) NOT NULL, `fieldName` VARCHAR(50) NOT NULL, `primaryKey` VARCHAR(150) NOT NULL, `fileName` VARCHAR(255) NOT NULL, `fileRecordExists` ENUM('y','n') NOT NULL DEFAULT 'n', `userFileExists` ENUM('y','n') NOT NULL DEFAULT 'n', `status` VARCHAR(50) NULL DEFAULT NULL, PRIMARY KEY(`id`), INDEX `fileName` (`fileName` ASC) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `qs_SanityCheckUserFile`; CREATE TABLE `qs_SanityCheckUserFile` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `fileName` VARCHAR(255) NOT NULL, `appFileExists` ENUM('y','n') NOT NULL DEFAULT 'n', `status` VARCHAR(50) NULL DEFAULT NULL, PRIMARY KEY(`id`), INDEX `fileName` (`fileName` ASC) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- TRUNCATE `qs_SanityCheckFileRegistry`; -- TRUNCATE `qs_SanityCheckAppFile`; -- TRUNCATE `qs_SanityCheckUserFile`;