create new resources
This commit is contained in:
@@ -1277,7 +1277,9 @@ INSERT INTO resource (`id`, `code`, `created_at`, `updated_at`) VALUES
|
||||
(29, 'admin.configuration.admin-logs', NOW(), NOW()),
|
||||
(30, 'admin.configuration.system-logs', NOW(), NOW()),
|
||||
(31, 'admin.configuration.advanced', NOW(), NOW()),
|
||||
(32, 'admin.configuration.translations', NOW(), NOW());
|
||||
(32, 'admin.configuration.translations', NOW(), NOW()),
|
||||
(33, 'admin.export', NOW(), NOW()),
|
||||
(34, 'admin.tools', NOW(), NOW());
|
||||
|
||||
/**
|
||||
generated with command : php Thelia thelia:generate-resources --output sql-i18n
|
||||
@@ -1347,6 +1349,10 @@ INSERT INTO resource_i18n (`id`, `locale`, `title`) VALUES
|
||||
(31, 'fr_FR', 'Configuration avancée'),
|
||||
(32, 'en_US', 'Translations'),
|
||||
(32, 'fr_FR', 'Traductions');
|
||||
(33, 'en_US', 'Back-office export management'),
|
||||
(33, 'fr_FR', 'gestion des exports'),
|
||||
(34, 'en_US', 'Tools panel'),
|
||||
(34, 'fr_FR', 'Outils');
|
||||
|
||||
|
||||
INSERT INTO `message` (`id`, `name`, `secured`, `text_layout_file_name`, `text_template_file_name`, `html_layout_file_name`, `html_template_file_name`, `created_at`, `updated_at`) VALUES
|
||||
|
||||
@@ -12,6 +12,7 @@ ALTER TABLE `module` ADD INDEX `idx_module_activate` (`activate`);
|
||||
SELECT @max := MAX(`id`) FROM `resource`;
|
||||
SET @max := @max+1;
|
||||
|
||||
|
||||
INSERT INTO resource (`id`, `code`, `created_at`, `updated_at`) VALUES
|
||||
(@max, 'admin.configuration.store', NOW(), NOW());
|
||||
|
||||
@@ -48,6 +49,15 @@ INSERT INTO resource_i18n (`id`, `locale`, `title`) VALUES
|
||||
|
||||
SET @max := @max+1;
|
||||
|
||||
INSERT INTO `resource` (`id`, `code`, `created_at`, `updated_at`) VALUES
|
||||
(@max, 'admin.export', NOW(), NOW());
|
||||
|
||||
INSERT INTO resource_i18n (`id`, `locale`, `title`) VALUES
|
||||
(@max, 'en_US', 'Back-office export management'),
|
||||
(@max, 'fr_FR', 'gestion des exports');
|
||||
|
||||
SET @max := @max+1;
|
||||
|
||||
INSERT INTO resource (`id`, `code`, `created_at`, `updated_at`) VALUES
|
||||
(@max, 'admin.configuration.advanced', NOW(), NOW());
|
||||
|
||||
@@ -64,4 +74,15 @@ INSERT INTO resource_i18n (`id`, `locale`, `title`) VALUES
|
||||
(@max, 'en_US', 'Translations'),
|
||||
(@max, 'fr_FR', 'Traductions');
|
||||
|
||||
SET @max := @max+1;
|
||||
|
||||
INSERT INTO resource (`id`, `code`, `created_at`, `updated_at`) VALUES
|
||||
(@max, 'admin.tools', NOW(), NOW());
|
||||
|
||||
INSERT INTO resource_i18n (`id`, `locale`, `title`) VALUES
|
||||
(@max, 'en_US', 'Tools panel'),
|
||||
(@max, 'fr_FR', 'Outils');
|
||||
|
||||
|
||||
|
||||
SET FOREIGN_KEY_CHECKS = 1;
|
||||
|
||||
Reference in New Issue
Block a user