restrictions
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2022-12-12 13:37:14 +01:00
parent 4cb8d8c763
commit 158a71a326
2 changed files with 6 additions and 2 deletions

View File

@ -1 +0,0 @@
Delete this file

View File

@ -13,7 +13,7 @@ CREATE TABLE IF NOT EXISTS `vn`.`businessCategory` (
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
INSERT IGNORE INTO `vn`.`businessCategory` (id, description, rate)
INSERT IGNORE INTO `vn`.`businessCategory` (`id`, `description`, `rate`)
SELECT codcategoria, descripcion, Tarifa FROM `vn2008`.`payroll_categorias`;
ALTER TABLE `vn`.`business` DROP FOREIGN KEY IF EXISTS`business_workerBusinessCategoryFk`;
@ -29,3 +29,8 @@ select
`b`.`rate` AS `Tarifa`
from
`vn`.`businessCategory` `b`;
-- replicate restrictions
GRANT SELECT ON TABLE `vn2008`.`payroll_categorias` TO hr;
GRANT SELECT ON TABLE `vn`.`businessCategory` TO hr;