fixes bug#AL-1594
qua: dev: Pra deixar documentado, esse desenvolvimento da tabela EMPRESA_EMAIL_ECOMERCE estão com os campos fora do padrão. Por exemplo : o campo activo foi criado com o tamanho default de 38, alterar para o tamanho 1, está gerando erro nos banco de dados: "dizendo que não é possivel alterar o formato do campo", devido a uma trigger ativa no proprio banco. Então foi deixado como valor 38 para manter a compatiblidade com as empresas que ja estao usando essa tabela com os campos neste formato. *O ideal seria refazer a EMPRESA_EMAIL_ECOMERCE e recriar os campos novamente Por hora, foi feito uma mudança para corrigir e atender o que ja está desenvolvido. git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@114890 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
b4c52b3491
commit
732de00353
|
@ -10,7 +10,7 @@ declare
|
|||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01430);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE ADD (INDAUTENTICACAO NUMBER(1) )';
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE ADD (INDAUTENTICACAO NUMBER(38) )';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
|
@ -18,7 +18,7 @@ declare
|
|||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01451);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (EMPRESA_ID NULL)';
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (EMPRESA_ID NUMBER(38) NULL)';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
|
@ -26,7 +26,7 @@ declare
|
|||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01451);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (SMTP NULL)';
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (SMTP VARCHAR2(100) NULL)';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
|
@ -34,7 +34,7 @@ declare
|
|||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01451);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (SENHA NULL)';
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (SENHA VARCHAR2(100) NULL)';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
|
@ -42,7 +42,7 @@ declare
|
|||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01451);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (SMTPPORTA NULL)';
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (SMTPPORTA VARCHAR2(100) NULL)';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
|
@ -50,7 +50,7 @@ declare
|
|||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01451);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (SMTPEMAIL NULL)';
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (SMTPEMAIL VARCHAR2(100) NULL)';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
|
@ -58,7 +58,7 @@ declare
|
|||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01451);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (ACTIVO NULL)';
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (ACTIVO NUMBER(38) NULL)';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
|
@ -66,7 +66,7 @@ declare
|
|||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01451);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (FECMODIF NULL)';
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (FECMODIF DATE NULL)';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
|
@ -74,7 +74,7 @@ declare
|
|||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01451);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (USUARIO_ID NULL)';
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (USUARIO_ID NUMBER(38) NULL)';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
|
@ -82,7 +82,7 @@ declare
|
|||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01451);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (EMAILDE NULL)';
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (EMAILDE VARCHAR2(100) NULL)';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
|
@ -90,6 +90,11 @@ declare
|
|||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01451);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (TIPOOPERACAO NULL)';
|
||||
execute immediate 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE MODIFY (TIPOOPERACAO NUMBER(38) NULL)';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ declare
|
|||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01451);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE TARIFA MODIFY (COMPOSICAO_DO_PEAJE VARCHAR(300))';
|
||||
execute immediate 'ALTER TABLE TARIFA MODIFY (COMPOSICAO_DO_PEAJE VARCHAR2(300))';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
|
@ -10,6 +10,6 @@ declare
|
|||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01451);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE TARIFA_OFICIAL MODIFY (COMPOSICAO_DO_PEAJE VARCHAR(300))';
|
||||
execute immediate 'ALTER TABLE TARIFA_OFICIAL MODIFY (COMPOSICAO_DO_PEAJE VARCHAR2(300))';
|
||||
exception when column_exists then null;
|
||||
end;
|
Loading…
Reference in New Issue