forked from SimplesIP/pabx-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.3 KiB
31 lines
1.3 KiB
2 years ago
|
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
|
||
|
);
|