Installation du module MailJet + on prépare le terrain pour la gestion des fiches recette
This commit is contained in:
26
local/modules/Mailjet/Config/thelia.sql
Normal file
26
local/modules/Mailjet/Config/thelia.sql
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
# 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;
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
-- mailjet_newsletter
|
||||
-- ---------------------------------------------------------------------
|
||||
|
||||
DROP TABLE IF EXISTS `mailjet_newsletter`;
|
||||
|
||||
CREATE TABLE `mailjet_newsletter`
|
||||
(
|
||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
||||
`mailjet_id` VARCHAR(255) NOT NULL,
|
||||
`email` VARCHAR(255) NOT NULL,
|
||||
`relation_id` VARCHAR(255),
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE INDEX `email_UNIQUE` (`email`),
|
||||
UNIQUE INDEX `relation_id_UNIQUE` (`relation_id`),
|
||||
INDEX `idx_mailjet_newsletter_email` (`email`),
|
||||
INDEX `idx_mailjet_newsletter_relation_id` (`relation_id`)
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
# This restores the fkey checks, after having unset them earlier
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
Reference in New Issue
Block a user