Files
domokits/local/modules/SliderRevolution/Config/thelia.sql
2019-11-21 12:25:31 +01:00

23 lines
682 B
SQL

# This is a fix for InnoDB in MySQL >= 4.1.x
# It "suspends judgement" for fkey relationships until are tables are set.
SET FOREIGN_KEY_CHECKS = 0;
-- ---------------------------------------------------------------------
-- slider_association
-- ---------------------------------------------------------------------
DROP TABLE IF EXISTS `slider_association`;
CREATE TABLE `slider_association`
(
`id` INTEGER NOT NULL AUTO_INCREMENT,
`slider_alias` VARCHAR(255),
`object_id` INTEGER NOT NULL,
`object_type` VARCHAR(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
# This restores the fkey checks, after having unset them earlier
SET FOREIGN_KEY_CHECKS = 1;