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