Sample data for customers.
This commit is contained in:
parent
7b039fcedb
commit
d4adbb972d
@ -16,4 +16,8 @@
|
||||
<include file="config/liquibase/changelog/20190424123258_added_entity_constraints_Asset.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20190424123259_added_entity_constraints_SepaMandate.xml" relativeToChangelogFile="false"/>
|
||||
<!-- jhipster-needle-liquibase-add-constraints-changelog - JHipster will add liquibase constraints changelogs here -->
|
||||
|
||||
<!-- sample data -->
|
||||
<include file="config/liquibase/sample-data/customers.xml" relativeToChangelogFile="false"/>
|
||||
|
||||
</databaseChangeLog>
|
||||
|
@ -1,7 +1,7 @@
|
||||
id;jhi_number;prefix;name;contractual_address
|
||||
1;10001;aaa;AAA Corp.;'Ballustrade 13|91334 Erlangen'
|
||||
2;10002;bbb;BBB GmbH;'Irgendwo 0|11111 Berlin'
|
||||
3;10003;ccc;CCC AG;'Haus 15|26539 Baltrum'
|
||||
4;10004;ddd;DDD eG;'Industriestraße 98-102|n22999 Hamburg'
|
||||
5;10098;abc;ABC OHG;'An der Weide 13|30123 Hannover'
|
||||
6;10099;bca;Bert Cäsar Adelbert;'Egerstraße 53|44225 Dortmund'
|
||||
id;reference;prefix;name;kind;vat_region;contractual_address
|
||||
1;10001;aaa;AAA Corp.;LEGAL;DOMESTIC;Ballustrade 13|91334 Erlangen
|
||||
2;10002;bbb;BBB GmbH;LEGAL;DOMESTIC;Irgendwo 0|11111 Berlin
|
||||
3;10003;ccc;CCC AG;LEGAL;DOMESTIC;Haus 15|26539 Baltrum
|
||||
4;10004;ddd;DDD eG;LEGAL;DOMESTIC;Industriestraße 98-102|n22999 Hamburg
|
||||
5;10098;abc;ABC OHG;LEGAL;DOMESTIC;An der Weide 13|30123 Hannover
|
||||
6;10099;bca;Bert Cäsar Adelbert;NATURAL;DOMESTIC;'Egerstraße 53|44225 Dortmund
|
||||
|
|
@ -0,0 +1,25 @@
|
||||
<?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="20190403083736-2" author="mhoennig" context="sample-data">
|
||||
<loadData encoding="UTF-8"
|
||||
file="config/liquibase/sample-data/customers.csv"
|
||||
separator=";"
|
||||
tableName="customer">
|
||||
</loadData>
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="20190403083736-3" author="mhoennig" context="sample-data">
|
||||
<sql>UPDATE customer SET contractual_address = replace(contractual_address, '|', '\n')</sql>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
Loading…
Reference in New Issue
Block a user