add schema
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
da5e6a43f6
commit
e17b9a32b9
|
@ -1,14 +1,14 @@
|
|||
INSERT INTO vn.businessType (code,description)
|
||||
INSERT INTO `vn`.`businessType` (`code`, `description`)
|
||||
VALUES ('worker','Trabajador');
|
||||
|
||||
ALTER TABLE `vn`.`workerConfig` ADD businessTypeFk varchar(100) NULL
|
||||
ALTER TABLE `vn`.`workerConfig` ADD businessTypeFk varchar(100) NULL
|
||||
COMMENT 'Tipo de negocio por defecto al dar de alta un trabajador nuevo';
|
||||
|
||||
UPDATE `vn`.`workerConfig`
|
||||
SET businessTypeFk = 'worker'
|
||||
WHERE id = 1;
|
||||
|
||||
UPDATE client c
|
||||
JOIN worker w ON w.id = c.id
|
||||
UPDATE `vn`.`client` c
|
||||
JOIN `vn`.`worker` w ON w.id = c.id
|
||||
SET c.name = REPLACE(c.name, 'TR ', ''),
|
||||
c.businessTypeFk = 'worker';
|
||||
c.businessTypeFk = 'worker';
|
||||
|
|
Loading…
Reference in New Issue