2024-04-05 09:01:00 +00:00
|
|
|
CREATE OR REPLACE TEMPORARY TABLE tmp.claimsWithHasToPickUp
|
|
|
|
SELECT id
|
|
|
|
FROM vn.claim
|
|
|
|
WHERE hasToPickUp;
|
|
|
|
|
2024-04-04 12:15:20 +00:00
|
|
|
ALTER TABLE vn.claim CHANGE hasToPickUp pickup ENUM('agency', 'delivery') DEFAULT NULL;
|
2024-04-05 09:01:00 +00:00
|
|
|
|
|
|
|
UPDATE vn.claim c
|
|
|
|
JOIN tmp.claimsWithHasToPickUp tmp ON tmp.id = c.id
|
|
|
|
SET c.pickup = 'delivery';
|
|
|
|
|
2024-04-09 08:10:11 +00:00
|
|
|
-- Solved bug empty value
|
|
|
|
UPDATE vn.claim
|
|
|
|
SET pickup = NULL
|
|
|
|
WHERE pickup = '';
|
|
|
|
|
2024-04-05 09:01:00 +00:00
|
|
|
DROP TEMPORARY TABLE tmp.claimsWithHasToPickUp;
|
|
|
|
|
|
|
|
INSERT INTO salix.ACL (model,property,accessType,principalId)
|
|
|
|
VALUES ('Application','getEnumValues','*','employee');
|