|
|
|
alter table ast_bilhetes add controle int;
|
|
|
|
|
|
|
|
ALTER TABLE pbx_campanha ADD COLUMN cmp_tipo_campanha INT;
|
|
|
|
|
|
|
|
/** COLUNAS DE WHATSAPP **/
|
|
|
|
ALTER TABLE pbx_parametros ADD COLUMN prm_sk_host_chat VARCHAR(100);
|
|
|
|
ALTER TABLE pbx_parametros ADD COLUMN prm_chat_api VARCHAR(100);
|
|
|
|
ALTER TABLE pbx_parametros ADD COLUMN prm_media_simultaneo INT DEFAULT 3;
|
|
|
|
|
|
|
|
drop table pbx_cliente_etapas;
|
|
|
|
create table pbx_cliente_etapa( cletp_id int not null primary key, cletp_descricao varchar(64) not null);
|
|
|
|
alter table pbx_cliente add cletp_id int not null default 1;
|
|
|
|
|
|
|
|
-- select * from pbx_cliente_etapa;
|
|
|
|
insert into pbx_cliente_etapa values('1', 'VALIDACAO'), ('2', 'PROSPECCAO'), ('3', 'FINALIZACAO');
|
|
|
|
|
|
|
|
select * from pbx_usuarios;
|
|
|
|
Alter table pbx_usuarios add termo_uso_privacidade integer NOT NULL DEFAULT 0;
|
|
|
|
Alter table pbx_usuarios add termo_uso_privacidade_log character varying(1024);
|
|
|
|
alter table pbx_usuarios add termo_uso_log varchar(255);
|
|
|
|
alter table pbx_usuarios add user_system int not null default 0;
|
|
|
|
|
|
|
|
ALTER TABLE pbx_lista_discador ADD COLUMN ld_status CHAR DEFAULT(1);
|
|
|
|
|
|
|
|
alter table pbx_parametros add prm_ativa_complemento_campanha int not null default 0;
|
|
|
|
-- update pbx_parametros set prm_ativa_complemento_campanha = 1
|
|
|
|
|
|
|
|
create table pbx_campanha_complemento(
|
|
|
|
cmp_id bigserial not null primary key,
|
|
|
|
cmp_dados text
|
|
|
|
);
|