ALTER TABLE request_statuses ADD COLUMN code VARCHAR(32);

UPDATE request_statuses SET code = LOWER(name);

ALTER TABLE request_statuses CHANGE COLUMN code code VARCHAR (32) NOT NULL UNIQUE;

INSERT INTO request_statuses (code, name) VALUES ('processed', 'Processed');