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';
|
|
|
|
|
|
|
|
DROP TEMPORARY TABLE tmp.claimsWithHasToPickUp;
|
|
|
|
|
|
|
|
INSERT INTO salix.ACL (model,property,accessType,principalId)
|
|
|
|
VALUES ('Application','getEnumValues','*','employee');
|