IF NOT EXISTS (SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'sp_oper' AND COLUMN_NAME = 'oper_code') THEN ALTER TABLE `sp_oper` ADD COLUMN `oper_code` ...
ADD COLUMN IF NOT EXISTS confirmed_by uuid, ADD COLUMN IF NOT EXISTS confirmed_at timestamp with time zone, ADD COLUMN IF NOT EXISTS work_started_at timestamp with time zone, ADD COLUMN IF NOT EXISTS ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results