#131 sample-data for sepamandate
This commit is contained in:
parent
0a9f2584f1
commit
20b9d2f105
@ -24,5 +24,6 @@
|
|||||||
<include file="config/liquibase/sample-data/memberships.xml" relativeToChangelogFile="false"/>
|
<include file="config/liquibase/sample-data/memberships.xml" relativeToChangelogFile="false"/>
|
||||||
<include file="config/liquibase/sample-data/shares.xml" relativeToChangelogFile="false"/>
|
<include file="config/liquibase/sample-data/shares.xml" relativeToChangelogFile="false"/>
|
||||||
<include file="config/liquibase/sample-data/assets.xml" relativeToChangelogFile="false"/>
|
<include file="config/liquibase/sample-data/assets.xml" relativeToChangelogFile="false"/>
|
||||||
|
<include file="config/liquibase/sample-data/sepamandates.xml" relativeToChangelogFile="false"/>
|
||||||
|
|
||||||
</databaseChangeLog>
|
</databaseChangeLog>
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
id;customer_id;reference;iban;bic;granting_document_date;revokation_document_date;valid_from_date;valid_until_date;last_used_date;remark
|
||||||
|
1;1;DKXIDEHAC01;DE94500105172859877827;REF02039402;2018-01-15;null;2018-01-16;null;2019-04-09;a remark|over two lines
|
||||||
|
2;2;JKUIDEBIS00;DE56500105172321139153;REF2834823W;2017-06-03;2019-01-15;2017-06-04;2019-01-31;2019-01-10;for the old bank account
|
||||||
|
3;2;JUZTDEVER03;DE56500105172321139153;REF2834823W;2019-01-15;null;2019-02-01;null;2019-04-09;for the new bank account
|
||||||
|
4;3;CKIZDESiX98;DE24500105175933769123;REF23984928;2016-09-13;2018-11-20;2016-09-13;2018-12-31;2018-12-09;membership cancelled
|
||||||
|
5;5;ZUIJDEVOR12;DE92500105174781793571;REF23882384;2016-12-03;null;2016-12-03;null;2019-04-09;null
|
|
@ -0,0 +1,31 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<databaseChangeLog
|
||||||
|
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||||
|
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
|
||||||
|
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
|
||||||
|
<property name="now" value="now()" dbms="h2"/>
|
||||||
|
<property name="now" value="current_timestamp" dbms="postgresql"/>
|
||||||
|
<property name="floatType" value="float4" dbms="postgresql, h2"/>
|
||||||
|
<property name="floatType" value="float" dbms="mysql, oracle, mssql"/>
|
||||||
|
|
||||||
|
<changeSet id="20190503152800-1" author="mhoennig" context="sample-data">
|
||||||
|
<loadData encoding="UTF-8"
|
||||||
|
file="config/liquibase/sample-data/sepamandates.csv"
|
||||||
|
separator=";"
|
||||||
|
tableName="sepa_mandate">
|
||||||
|
</loadData>
|
||||||
|
</changeSet>
|
||||||
|
|
||||||
|
<changeSet id="20190503152800-2" author="mhoennig" context="sample-data">
|
||||||
|
<sql>
|
||||||
|
UPDATE sepa_mandate SET remark = replace(remark, '|', STRINGDECODE('\n'))
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<rollback>
|
||||||
|
DELETE FROM sepa_mandate;
|
||||||
|
</rollback>
|
||||||
|
</changeSet>
|
||||||
|
|
||||||
|
</databaseChangeLog>
|
Loading…
Reference in New Issue
Block a user