fixes bug#JIRA-38

dev:julio

qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@114150 d1611594-4594-4d17-8e1d-87c2c4800839
master
lucas.taia 2022-09-12 14:46:43 +00:00
parent e0f170ce00
commit 3ae55baf17
2 changed files with 34 additions and 2 deletions

View File

@ -1,11 +1,32 @@
ALTER TABLE EMPRESA_EMAIL_ECOMERCE DROP COLUMN TEXTOEMAIL;
ALTER TABLE EMPRESA_EMAIL_ECOMERCE DROP COLUMN TEXTOCUPOMEMBARQUE;
ALTER TABLE EMPRESA_EMAIL_ECOMERCE add (TEXTOEMAIL CLOB);
ALTER TABLE EMPRESA_EMAIL_ECOMERCE add (TEXTOCUPOMEMBARQUE CLOB);
declare
object_exists exception;
except_00957 exception;
pragma exception_init (object_exists , -01430);
pragma exception_init (except_00957 , -00957);
begin
execute immediate 'ALTER TABLE GP_PRICING ADD (VALOREXTRA NUMBER(7,2) )';
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE add (ANEXO1 CLOB)';
exception
when object_exists then null;
when except_00957 then null;
end;
end;
UPDATE EMPRESA_EMAIL_ECOMERCE
SET
TEXTOEMAIL = '<p><span style="font-size: 14px;">Oi, tudo bem? <strong>[[${nomeCliente}]]</strong>, seu codigo de validacao: <strong>[[${codigoEsqueceuSenha}]]</strong> . Nao o repasse para terceiros.</span></p><hr /><p style="text-align: center;"><em style="text-align: -webkit-center;">A [[${empresa}]] agradece!</em></p>'
WHERE
activo = 1
AND tipooperacao = 2;
UPDATE EMPRESA_EMAIL_ECOMERCE
SET
TEXTOEMAIL = '<p><span style="font-size: 14px;">Olá tudo bem? <strong>[[${nomeCliente}]]</strong>, sua compra foi realizada com sucesso, favor verificar no app, no menu viagens, o bilhete para realizar o embarque.</span></p><hr /><p style="text-align: center;"><em style="text-align: -webkit-center;">A [[${empresa}]] agradece!</em></p>'
WHERE
activo = 1
AND tipooperacao = 3;

View File

@ -0,0 +1,11 @@
declare
object_exists exception;
except_00957 exception;
pragma exception_init (object_exists , -01430);
pragma exception_init (except_00957 , -00957);
begin
execute immediate 'ALTER TABLE GP_PRICING ADD (VALOREXTRA NUMBER(7,2) )';
exception
when object_exists then null;
when except_00957 then null;
end;