Installation du module MailJet + on prépare le terrain pour la gestion des fiches recette

This commit is contained in:
2021-03-30 13:28:37 +02:00
parent 638f59eb8f
commit eed9abf439
27 changed files with 3612 additions and 0 deletions

View 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;