AdmMono/src/db/migration/V20180906_1042__mantis12042...

7 lines
275 B
SQL

declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'ALTER TABLE TAXPOL ADD CONSTRAINT TAXPOLC_FK FOREIGN KEY (TAXPOLC_ID) REFERENCES TAXPOLC( TAXPOLC_ID ) ENABLE';
exception when others then null;
end;