ALTER TABLE work_orders ADD COLUMN uuid CHAR(36) NOT NULL; UPDATE work_orders SET uuid = UUID() WHERE uuid IS NULL OR uuid = '';