fix: update changedModel column in clientLog table to use ENUM and set default value

This commit is contained in:
Carlos Andrés 2025-03-06 13:16:33 +01:00
parent daef11e48f
commit b29e9a881e
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
ALTER TABLE vn.clientLog MODIFY COLUMN changedModel
ENUM('Client','Address','ClientContact','ClientDms','ClientObservation','ClientSample','ClientUnpaid','Greuge','Recovery','Mandate','TpvTransaction','WorkerDms','Sms')
CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'Client' NOT NULL;
UPDATE clientLog
SET changedModel = 'Mandate'
WHERE changedModel = '';