SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Table `tagCacheT` -- ----------------------------------------------------- DROP TABLE IF EXISTS `tagCacheT` ; CREATE TABLE IF NOT EXISTS `tagCacheT` ( `id` INT UNSIGNED NOT NULL, `tagNames` TEXT NULL, `tagNamesSearch` TEXT NULL, PRIMARY KEY (`id`), CONSTRAINT `fk_tagCacheT_tagT1` FOREIGN KEY (`id`) REFERENCES `tagT` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `attributeCacheT` -- ----------------------------------------------------- DROP TABLE IF EXISTS `attributeCacheT` ; CREATE TABLE IF NOT EXISTS `attributeCacheT` ( `id` INT UNSIGNED NOT NULL, `attributeNames` TEXT NULL, `attributeNamesSearch` TEXT NULL, PRIMARY KEY (`id`), CONSTRAINT `fk_attributeCacheT_attributeT1` FOREIGN KEY (`id`) REFERENCES `attributeT` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION) ENGINE = InnoDB; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;