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

19 lines
470 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
2018-08-21 11:38:16 +00:00
`vn2008`.`escritos` `e`;