alter table camera_status_push_config alter column notice_way type varchar[32] using notice_way::varchar[32];



DROP TABLE if exists camera_status_push_log
create table if not exists camera_status_push_log
(
    id             serial              not null,
    push_config_id integer,
    time           timestamp,
    push_way       varchar(128)        not null,
    camera         integer[]           not null,
    receiver       character varying[] not null,
    constraint camera_status_push_log_pk
        primary key (id)
);

comment on table camera_status_push_log is '上下线推送日志';

create unique index if not exists camera_status_push_log_id_uindex
    on camera_status_push_log (id);
