1 drop-unique
The 'drop-unique' element deletes an existing "unique" constraint from an existing table.
<drop-unique
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
The following example deletes the constraint 'id_composed' from the table 'sometable'.
Example
Copy
<xsql-conversion> <drop-unique table='sometable' name='id_composed' /> </xsql-conversion>