adding Postgres configurations for dev-environment with sample-data
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user