1 drop-foreign
The drop-foreign element removes an existing 'foreign' restriction from an existing table.
<drop-foreign
table='table'
name='name'
onexception='onexception'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Atable | string | Name of the table that has the restriction. | |||
Aname | string | Restriction name. | |||
Aonexception | string | ignore | Behavior in case of error. |
1.1 Example
In the following example, key 'other' is deleted from the table 'sometable'.
Example
Copy
<xsql-conversion> <drop-foreign table='sometable' name='other' /> </xsql-conversion>