AdmMono/src/db/migration/V20161202_1621__mantis7788.sql

176 lines
5.1 KiB
SQL

declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_ADIANTAMENTO_CLIENTE ADD (DATAINICIO DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_ADIANTAMENTO_CLIENTE ADD (DATAFIM DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_BAIXA_VENCTOCARTAO ADD (DATAINICIO DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_BAIXA_VENCTOCARTAO ADD (DATAFIM DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_CONTAS_PAGAR ADD (DATAINICIO DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_CONTAS_PAGAR ADD (DATAFIM DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_CONTAS_RECEBER ADD (DATAINICIO DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_CONTAS_RECEBER ADD (DATAFIM DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_DEPOSITOS_DIVERSOS ADD (DATAINICIO DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_DEPOSITOS_DIVERSOS ADD (DATAFIM DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_DEV_ADIANTAMENTO_CLIENTE ADD (DATAINICIO DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_DEV_ADIANTAMENTO_CLIENTE ADD (DATAFIM DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_RATEIO_CTAS_RECEBER ADD (DATAINICIO DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_RATEIO_CTAS_RECEBER ADD (DATAFIM DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_SERVICOS_CTAS_RECEBER ADD (DATAINICIO DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_SERVICOS_CTAS_RECEBER ADD (DATAFIM DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_VENCIMENTOS_CTAS_PAGAR ADD (DATAINICIO DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_VENCIMENTOS_CTAS_PAGAR ADD (DATAFIM DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_VENCIMENTOSDIV_CTAS_RECEBER ADD (DATAINICIO DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_VENCIMENTOSDIV_CTAS_RECEBER ADD (DATAFIM DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_VNCTO_CARTAO_CTAS_RECEBER ADD (DATAINICIO DATE NOT NULL)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE AG_VNCTO_CARTAO_CTAS_RECEBER ADD (DATAFIM DATE NOT NULL)';
exception when column_exists then null;
end;