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.
32 lines
766 B
32 lines
766 B
2 years ago
|
|
||
|
|
||
|
|
||
|
DROP VIEW if exists pbx_localiza_opcoes;
|
||
|
DROP TABLE if exists cdr;
|
||
|
DROP TABLE if exists lista_coworking;
|
||
|
|
||
|
CREATE INDEX "idxPbxAuditaFull"
|
||
|
ON pbx_audita_full
|
||
|
USING btree
|
||
|
(full_data, full_prog_nome);
|
||
|
|
||
|
|
||
|
ALTER TABLE ast_bilhetes
|
||
|
DROP COLUMN controle;
|
||
|
|
||
|
ALTER TABLE pbx_cliente
|
||
|
ALTER COLUMN cletp_id SET DEFAULT 0;
|
||
|
|
||
|
delete from pbx_bilhetes_complemento where id in(
|
||
|
select id from pbx_bilhetes_complemento group by id having count(*) > 1);
|
||
|
|
||
|
ALTER TABLE pbx_bilhetes_complemento
|
||
|
ADD CONSTRAINT pbx_bilhetes_complemento_pkey PRIMARY KEY (id);
|
||
|
|
||
|
|
||
|
delete from pbx_eventos_dacs where id in(
|
||
|
select id from pbx_eventos_dacs group by id having count(*) > 1);
|
||
|
|
||
|
ALTER TABLE pbx_eventos_dacs
|
||
|
ADD CONSTRAINT pbx_eventos_dacs_new_pbx_eventos_dac_pkey PRIMARY KEY (id);
|