AdmMono/src/db/migration/V20180511_0924__mantis10994...

24 lines
762 B
SQL

declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE TARIFA MODIFY (PRECIOORIGINAL NUMBER(10, 2))';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE TARIFA_OFICIAL MODIFY (PRECIOORIGINAL NUMBER(10, 2), PRECIO NUMBER(10, 2))';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE TARIFA_HIST MODIFY (PRECIOORIGINAL NUMBER(10, 2), PRECIO NUMBER(10, 2))';
exception when column_exists then null;
end;