Installation du module MailJet + on prépare le terrain pour la gestion des fiches recette
This commit is contained in:
22
local/modules/Mailjet/Config/update/1.3.sql
Normal file
22
local/modules/Mailjet/Config/update/1.3.sql
Normal file
@@ -0,0 +1,22 @@
|
||||
# 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
|
||||
-- ---------------------------------------------------------------------
|
||||
|
||||
ALTER TABLE `mailjet_newsletter` MODIFY `relation_id` INT;
|
||||
|
||||
ALTER TABLE `mailjet_newsletter` MODIFY `id` VARCHAR(255);
|
||||
|
||||
ALTER TABLE `mailjet_newsletter` CHANGE `id` `mailjet_id` VARCHAR(255);
|
||||
|
||||
ALTER TABLE `mailjet_newsletter` ADD COLUMN `id` INT NOT NULL AUTO_INCREMENT UNIQUE FIRST;
|
||||
|
||||
ALTER TABLE `mailjet_newsletter`
|
||||
DROP PRIMARY KEY,
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
# This restores the fkey checks, after having unset them earlier
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
Reference in New Issue
Block a user