alter table alarm_push_config
	add alarm_sub_type jsonb

comment on column alarm_push_config.alarm_sub_type is '存对应监听模块(alarm_type)的子类(
  数据告警：alarms.AlarmGroupUnit,
  视频异常：camera.kind_id,
  应用异常：app_alarm.errType
)';


ALTER TABLE alarm_push_config ALTER COLUMN poms_project_id TYPE INTEGER [] 
    USING CASE 
        WHEN poms_project_id is NULL 
            then NULL 
        ELSE array [poms_project_id] 
        END ::INTEGER [];