我具有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_time”(默认/表达式)。
为什么呢?