liquibase无法正确创建字段

vzgqcmou  于 2021-06-18  发布在  Mysql
关注(0)|答案(0)|浏览(224)

我有这部分xml liquibase脚本,用于在表中创建一些列:

<column name="send_time" type="timestamp">
            <constraints nullable="false"/>
        </column>
        <column name="delivery_time" type="timestamp">
            <constraints nullable="false"/>
        </column>
        <column name="read_time" type="timestamp">
            <constraints nullable="false"/>
        </column>
        <column name="payload" type="json">
            <constraints nullable="true"/>
        </column>
        <column name="created_date" type="timestamp">
            <constraints nullable="false"/>
        </column>
        <column name="created_by" type="varchar(50)">
            <constraints nullable="false"/>
        </column>
        <column name="last_modified_date" type="timestamp"/>
        <column name="last_modified_by" type="varchar(50)"/>
        <column name="deleted_date" type="timestamp"/>
        <column name="deleted_by" type="varchar(50)"/>

有人能解释一下为什么结果和附图一样吗?

换言之,这将设置为“send\u time”字段,这是默认的/表达式。
为什么是这个?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题