Maybe this topic in the liquibase forum will help?
I think defaultValueComputed
will take a database specific function to express "now". In mySQL it would be CURRENT_TIMESTAMP
so it could look like this:
<createTable tableName="D_UserSession">
<column name="ts" type="TIMESTAMP" defaultValueComputed="CURRENT_TIMESTAMP"/>
</createTable>
(Copied from the forum post.)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…