DO $$
BEGIN
  CREATE UNIQUE INDEX PK__BPE__BPE_ID ON BPE (BPE_ID);
  CREATE INDEX IDX__BPE_BOLETO ON BPE (BOLETO_ID);
  CREATE INDEX IDX__BPE_BPESUBSTITUICAO ON BPE (BPESUBSTITUICAO_ID);
  
  EXCEPTION WHEN duplicate_table THEN NULL;
END
$$;
