move timezone logic to a reusable timestamp_type property

This commit is contained in:
Athou
2024-01-13 17:23:16 +01:00
parent c4fbf98200
commit e9b4895b0f
2 changed files with 19 additions and 20 deletions

View File

@@ -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" />