Liquibase: How to set the default value of a date column to be “now” in UTC format?

前端 未结 6 554
忘掉有多难
忘掉有多难 2021-01-07 16:20

How do you set the default value of a date column to be \"now\" in UTC format? I think the answer involves the defaultValueComputed attribute on the column elem

6条回答
  •  时光说笑
    2021-01-07 17:01

    This works with SQlite:

    
                    
    
    

    Adding '$now' didn't work for me. I am using SQlite as the DB.

提交回复
热议问题