#1454 update table bi.tarifa_componentes
gitea/salix/dev This commit looks good Details

This commit is contained in:
Bernat 2019-05-21 12:46:22 +02:00
parent 227475e4fc
commit 2636e2d221
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,2 @@
ALTER TABLE `bi`.`tarifa_componentes`
ADD COLUMN `code` VARCHAR(45) NULL DEFAULT NULL AFTER `is_renewable`;

View File

@ -0,0 +1,16 @@
CREATE
OR REPLACE ALGORITHM = UNDEFINED
DEFINER = `root`@`%`
SQL SECURITY DEFINER
VIEW `vn`.`componentRate` AS
SELECT
`t`.`Id_Componente` AS `id`,
`t`.`Componente` AS `name`,
`t`.`tarifa_componentes_series_id` AS `componentTypeRate`,
`t`.`tarifa_class` AS `classRate`,
`t`.`tax` AS `tax`,
`t`.`is_renewable` AS `isRenewable`,
`t`.`code` AS `code`
FROM
`bi`.`tarifa_componentes` `t`;