Files
boutique-fanny/setup/update/sql/2.1.0-beta2.sql
2019-05-26 15:57:49 +02:00

31 lines
1.5 KiB
SQL

SET FOREIGN_KEY_CHECKS = 0;
-- Hooks
-- front hooks
SELECT @max_id := IFNULL(MAX(`id`),0) FROM `hook`;
INSERT INTO `hook` (`id`, `code`, `type`, `by_module`, `block`, `native`, `activate`, `position`, `created_at`, `updated_at`) VALUES
(@max_id + 1, 'account.additional', 1, 0, 1, 1, 1, 1, NOW(), NOW()),
(@max_id + 2, 'product.modification.form_top', 2, 0, 0, 1, 1, 1, NOW(), NOW()),
(@max_id + 3, 'product.modification.form_bottom', 2, 0, 0, 1, 1, 1, NOW(), NOW())
;
INSERT INTO `hook_i18n` (`id`, `locale`, `title`, `description`, `chapo`) VALUES
(@max_id + 1, 'de_DE', 'Kundenkonto - Erweitere Informationen', '', ''),
(@max_id + 2, 'de_DE', 'Produktseite - oben im Formular', '', ''),
(@max_id + 3, 'de_DE', 'Produktseite - unten an dem Formular', '', ''),
(@max_id + 1, 'en_US', 'Customer account - additional information', '', ''),
(@max_id + 2, 'en_US', 'Product page - On the top of the form', '', ''),
(@max_id + 3, 'en_US', 'Product page - On the bottom of the form', '', ''),
(@max_id + 1, 'es_ES', 'Cuenta de cliente - información adicional', '', ''),
(@max_id + 2, 'es_ES', 'Página de producto - en la parte superior del formulario', '', ''),
(@max_id + 3, 'es_ES', 'Página del producto - en la parte inferior del formulario', '', ''),
(@max_id + 1, 'fr_FR', 'Compte client - informations additionnelles', '', ''),
(@max_id + 2, 'fr_FR', 'Page produit - En haut du formulaire', '', ''),
(@max_id + 3, 'fr_FR', 'Page produit - En bas du formulaire', '', '')
;
SET FOREIGN_KEY_CHECKS = 1;