ALTER TABLE `channel` ADD COLUMN `orderindex` integer COMMENT '渠道顺序';


update channel set orderindex = 1 where type is not null and unique_name = 'gdt';
update channel set orderindex = 2 where type is not null and unique_name = 'smsearch';
update channel set orderindex = 3 where type is not null and unique_name = 'adwords';