salix/services/db/install/changes/1.0.9/04-sample.sql

21 lines
512 B
MySQL
Raw Normal View History

2018-07-27 09:18:27 +00:00
USE `vn`;
2018-07-31 09:08:22 +00:00
ALTER TABLE `vn2008`.`escritos`
ADD COLUMN `hasCompany` VARCHAR(45) NOT NULL DEFAULT 0 AFTER `visible`;
2018-07-27 09:18:27 +00:00
CREATE
OR REPLACE ALGORITHM = UNDEFINED
DEFINER = `root`@`%`
SQL SECURITY DEFINER
VIEW `sample` AS
SELECT
`e`.`id` AS `id`,
`e`.`abrev` AS `code`,
`e`.`descripcion` AS `description`,
2018-07-31 09:08:22 +00:00
`e`.`visible` AS `isVisible`,
`e`.`hasCompany` AS `hasCompany`
2018-07-27 09:18:27 +00:00
FROM
`vn2008`.`escritos` `e`;
2018-07-31 09:08:22 +00:00
DROP VIEW `vn`.`clientNotificationType`;