1 add-columns

The add-columns element adds one or more attributes (columns) to the definition of an existing table.

<add-columns
    table='table'
    onexception='onexception'
>
    <column /> +
</add-columns>
 

1.1 Example

In the following example, column 'numero' is added to table 'entidad'.

Example
Copy
<xsql-conversion>
    <add-columns table='entidad'>
        <column name='numero' type='smallint' />
    </add-columns>
</xsql-conversion>