create new resources

This commit is contained in:
Manuel Raynaud
2014-04-24 14:28:52 +02:00
parent bca1330d0d
commit dbe641ad84
7 changed files with 101 additions and 6 deletions

View File

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