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 `cacheObjectSortT` -- ----------------------------------------------------- DROP TABLE IF EXISTS `cacheObjectSortT` ; CREATE TABLE IF NOT EXISTS `cacheObjectSortT` ( `objectId` INT UNSIGNED NOT NULL, `attributeId` INT UNSIGNED NOT NULL, `sorterAsc` DOUBLE NULL, `sorterDesc` DOUBLE NULL, PRIMARY KEY (`objectId`, `attributeId`), INDEX `sorterasc_idx` (`attributeId` ASC, `sorterAsc` DESC), INDEX `sorterdesc_idx` (`attributeId` ASC, `sorterDesc` DESC), CONSTRAINT `fk_cacheObjectSortT_objectT1` FOREIGN KEY (`objectId`) REFERENCES `objectT` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION, CONSTRAINT `fk_cacheObjectSortT_attributeT1` FOREIGN KEY (`attributeId`) REFERENCES `attributeT` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `zzzDevNullSearchT` -- ----------------------------------------------------- DROP TABLE IF EXISTS `zzzDevNullSearchT` ; CREATE TABLE IF NOT EXISTS `zzzDevNullSearchT` ( `n` INT UNSIGNED NOT NULL, PRIMARY KEY (`n`)) ENGINE = BLACKHOLE; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;