1
0

adding Postgres configurations for dev-environment with sample-data

This commit is contained in:
Michael Hoennig
2019-05-04 13:59:12 +02:00
parent 24e76e03d1
commit 6efa167427
11 changed files with 168 additions and 25 deletions

View File

@@ -18,11 +18,21 @@
</loadData>
</changeSet>
<changeSet id="20190502111400-2" author="mhoennig" context="sample-data">
<sql>
<changeSet id="20190502111400-2" author="mhoennig" context="sample-data,">
<!-- I've tried extracting this to a stored procedure, but a compatible call
is only possible with PostgresSQL 11.x, otherwise the call syntax
between H2 and PostgresSQL would be different which defeated the point.
-->
<sql dbms="h2">
UPDATE asset SET remark = replace(remark, '|', STRINGDECODE('\n'))
</sql>
<sql dbms="postgresql">
UPDATE asset SET remark = replace(remark, '|', E'\n')
</sql>
<rollback>
DELETE FROM asset;
</rollback>