1 on-exception-ignore

The 'on-exception-ignore' element is used to group other elements to which you want to put the attribute onexception="ignore".

Therefore, any element that represents a directive that may produce an exception may appear one or more times in its arguments.

<on-exception-ignore>
    <table /> *
    <type /> *
    <check /> *
    <index /> *
    <unique /> *
    <primary /> *
    <foreign /> *
    <view /> *
    <synonym /> *
    <add-columns /> *
    <modify-columns /> *
    <drop-columns /> *
    <rename-table /> *
    <rename-column /> *
    <drop-table /> *
    <drop-synonym /> *
    <drop-view /> *
    <drop-check /> *
    <drop-index /> *
    <drop-unique /> *
    <drop-primary /> *
    <drop-foreign /> *
    <enable-trigger /> *
    <disable-trigger /> *
    <drop-trigger /> *
    <drop-function /> *
    <drop-procedure /> *
    <insert /> *
    <delete /> *
    <update /> *
</on-exception-ignore>
 

1.1 Example

In the following example we see two equivalent directives:

Example
Copy
<on-exception-ignore>
    <enable-trigger table='test_ddl' name='f_test_ddl1' />
    <drop-unique table='test_ddl' name='u_test_ddl1' />
    <drop-view name='test_ddl_s' />
</on-exception-ignore>  

<!-- Equivalent to: -->

<on-exception-ignore>
    <enable-trigger table='test_ddl' name='f_test_ddl1' onexception='ignore' />
    <drop-unique table='test_ddl' name='u_test_ddl1' onexception='ignore' />
    <drop-view name='test_ddl_s' onexception='ignore' />
</on-exception-ignore>