7199-devToTest_2316 #2287
|
@ -0,0 +1,5 @@
|
|||
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||||
SQL SECURITY DEFINER
|
||||
VIEW `vn2008`.`Proveedores_cargueras`
|
||||
AS SELECT `fs`.`id` AS `Id_Proveedor`
|
||||
FROM `vn`.`freightSupplier` `fs`
|
|
@ -0,0 +1,6 @@
|
|||
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||||
SQL SECURITY DEFINER
|
||||
VIEW `vn2008`.`Tramos`
|
||||
AS SELECT `s`.`id` AS `id`,
|
||||
`s`.`isFree` AS `Tramo`
|
||||
FROM `vn`.`section` `s`
|
|
@ -0,0 +1,8 @@
|
|||
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||||
SQL SECURITY DEFINER
|
||||
VIEW `vn2008`.`dock`
|
||||
AS SELECT `d`.`id` AS `id`,
|
||||
`d`.`code` AS `code`,
|
||||
`d`.`xPos` AS `xPos`,
|
||||
`d`.`yPos` AS `yPos`
|
||||
FROM `vn`.`dock` `d`
|
|
@ -1,3 +1,5 @@
|
|||
-- Place your SQL code here
|
||||
ALTER TABLE IF EXISTS `vn2008`.`Tramos` RENAME `vn`.``;
|
||||
ALTER TABLE IF EXISTS `vn2008`.`Tramos` RENAME `vn`.`section`;
|
||||
|
||||
ALTER TABLE IF EXISTS `vn`.`section`
|
||||
CHANGE COLUMN IF EXISTS `Tramo` `section` time NOT NULL;
|
|
@ -1,2 +1,3 @@
|
|||
-- Place your SQL code here
|
||||
ALTER TABLE IF EXISTS `vn2008`.`dock` RENAME `vn`.``;
|
||||
ALTER TABLE IF EXISTS `vn2008`.`dock` RENAME `vn`.`dock`;
|
||||
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
-- Place your SQL code here
|
||||
ALTER TABLE IF EXISTS `vn2008`.`Proveedores_cargueras` RENAME `vn`.``;
|
||||
ALTER TABLE IF EXISTS `vn2008`.`Proveedores_cargueras` RENAME `vn`.`freightSupplier`;
|
||||
|
||||
ALTER TABLE IF EXISTS `vn`.`freightSupplier`
|
||||
CHANGE COLUMN IF EXISTS `Id_Proveedor` `supplierFk` int(10) unsigned NOT NULL;
|
|
@ -0,0 +1,25 @@
|
|||
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||||
SQL SECURITY DEFINER
|
||||
VIEW `vn2008`.`Tramos` AS
|
||||
SELECT 1;
|
||||
|
||||
GRANT SELECT ON TABLE vn2008.Tramos TO `employee`;
|
||||
GRANT SELECT ON TABLE vn.section TO `employee`;
|
||||
|
||||
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||||
SQL SECURITY DEFINER
|
||||
VIEW `vn2008`.`dock` AS
|
||||
SELECT 1;
|
||||
|
||||
GRANT SELECT,UPDATE ON TABLE vn2008.dock TO `employee`;
|
||||
GRANT SELECT ON TABLE vn2008.dock TO `grafana`;
|
||||
GRANT SELECT,UPDATE ON TABLE vn.dock TO `employee`;
|
||||
GRANT SELECT ON TABLE vn.dock TO `grafana`;
|
||||
|
||||
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||||
SQL SECURITY DEFINER
|
||||
VIEW `vn2008`.`Proveedores_cargueras` AS
|
||||
SELECT 1;
|
||||
|
||||
GRANT SELECT ON TABLE vn2008.Proveedores_cargueras TO `buyer`;
|
||||
GRANT SELECT ON TABLE vn.freightSupplier TO `buyer`;
|
Loading…
Reference in New Issue