fix web ui smoke and brand assets
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
-- Backfill number-library RBAC rows for existing environments where the
|
||||
-- application seed was not rerun after the number library module landed.
|
||||
|
||||
INSERT INTO `permissions` (`id`, `module`, `action`, `description`, `created_at`, `updated_at`)
|
||||
VALUES
|
||||
('number_library.view', 'number_library', 'view', '查看号码库', CURRENT_TIMESTAMP(3), CURRENT_TIMESTAMP(3)),
|
||||
('number_library.manage', 'number_library', 'manage', '管理号码库', CURRENT_TIMESTAMP(3), CURRENT_TIMESTAMP(3))
|
||||
ON DUPLICATE KEY UPDATE
|
||||
`module` = VALUES(`module`),
|
||||
`action` = VALUES(`action`),
|
||||
`description` = VALUES(`description`),
|
||||
`updated_at` = CURRENT_TIMESTAMP(3);
|
||||
|
||||
INSERT IGNORE INTO `role_permissions` (`role_id`, `permission_id`)
|
||||
VALUES
|
||||
('ROLE_SUPER_ADMIN', 'number_library.view'),
|
||||
('ROLE_SUPER_ADMIN', 'number_library.manage'),
|
||||
('ROLE_OPERATOR', 'number_library.view'),
|
||||
('ROLE_OPERATOR', 'number_library.manage'),
|
||||
('ROLE_TECH_OPS', 'number_library.view'),
|
||||
('ROLE_TECH_OPS', 'number_library.manage');
|
||||
Reference in New Issue
Block a user