diff --git a/db/changes/225001/.gitkeep b/db/changes/225001/.gitkeep deleted file mode 100644 index 7a4187c02..000000000 --- a/db/changes/225001/.gitkeep +++ /dev/null @@ -1 +0,0 @@ -Delete this file diff --git a/db/changes/225001/00-businessCategory.sql b/db/changes/225001/00-businessCategory.sql index 941120062..3bc73b5c7 100644 --- a/db/changes/225001/00-businessCategory.sql +++ b/db/changes/225001/00-businessCategory.sql @@ -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;