forked from Archives/Athou_commafeed
move timezone logic to a reusable timestamp_type property
This commit is contained in:
@@ -4,9 +4,13 @@
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">
|
||||
|
||||
<property name="blob_type" value="bytea" dbms="postgresql" />
|
||||
<property name="blob_type" value="blob" dbms="h2" />
|
||||
<property name="blob_type" value="blob" dbms="mysql,mariadb" />
|
||||
<property name="blob_type" value="blob" dbms="mssql" />
|
||||
<property name="blob_type" value="blob" dbms="h2,mysql,mariadb,mssql" />
|
||||
|
||||
<!-- liquibase uses the 'TIMESTAMP WITHOUT TIME ZONE' type by default, which is not a UTC timestamp -->
|
||||
<!-- postgresql UTC timestamp is actually 'TIMESTAMP WITH TIME ZONE' -->
|
||||
<!-- see https://stackoverflow.com/a/48069726/1885506 -->
|
||||
<property name="timestamp_type" value="timestamp with time zone" dbms="postgresql" />
|
||||
<property name="timestamp_type" value="timestamp" dbms="h2,mysql,mariadb,mssql" />
|
||||
|
||||
<include file="changelogs/db.changelog-1.0.xml" />
|
||||
<include file="changelogs/db.changelog-1.1.xml" />
|
||||
|
||||
Reference in New Issue
Block a user