All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.harness.change.changelogs.postgresql.13.createTableWithGeneratedAlwaysAsColumn.xml Maven / Gradle / Ivy

There is a newer version: 1.0.10
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
        xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
         http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.3.xsd">
    <changeSet id="1" author="Liquibase">
        <createTable tableName="test_table">
            <column name="id" type="int"/>
            <column name="test_value" type="numeric"/>
            <column name="default_computed_value" type="int" defaultValueComputed="GENERATED ALWAYS AS (test_value / 2) STORED"/>
        </createTable>
    </changeSet>
</databaseChangeLog>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy