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.)