1 modify-columns

The 'modify-columns' element modifies one or more existing attributes (columns) in the definition of an existing table.

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

1.1 Example

In the following example, it is determined that column 'numero' in the table 'entidad' must be of 'smallint' type.

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