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-87c2c4800839master
parent
e0f170ce00
commit
3ae55baf17
|
@ -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
|
declare
|
||||||
object_exists exception;
|
object_exists exception;
|
||||||
except_00957 exception;
|
except_00957 exception;
|
||||||
pragma exception_init (object_exists , -01430);
|
pragma exception_init (object_exists , -01430);
|
||||||
pragma exception_init (except_00957 , -00957);
|
pragma exception_init (except_00957 , -00957);
|
||||||
begin
|
begin
|
||||||
execute immediate 'ALTER TABLE GP_PRICING ADD (VALOREXTRA NUMBER(7,2) )';
|
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE add (ANEXO1 CLOB)';
|
||||||
exception
|
exception
|
||||||
when object_exists then null;
|
when object_exists then null;
|
||||||
when except_00957 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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
Loading…
Reference in New Issue