fix table componentType
gitea/salix/2014-remove_bi_from_db This commit has test failures Details

This commit is contained in:
Bernat Exposito Domenech 2020-01-23 13:53:39 +01:00
parent 439f9009ff
commit 937ddd7880
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
ALTER TABLE `vn`.`componentType`
CHANGE COLUMN `isBase` `base` TINYINT(4) NOT NULL DEFAULT '0' COMMENT 'Marca aquellas series que se utilizan para calcular el precio base de las ventas, a efectos estadisticos' ;
CREATE
OR REPLACE ALGORITHM = UNDEFINED
DEFINER = `root`@`%`
SQL SECURITY DEFINER
VIEW `bi`.`tarifa_componentes_series` AS
SELECT
`ct`.`id` AS `tarifa_componentes_series_id`,
`ct`.`type` AS `Serie`,
`ct`.`base` AS `base`,
`ct`.`isMargin` AS `margen`
FROM
`vn`.`componentType` `ct`;