generate some Customer sample data for context="sample-data"

This commit is contained in:
Michael Hoennig 2019-04-03 09:53:29 +02:00
parent 1f1794b4f8
commit d583c9ec47
3 changed files with 20 additions and 1 deletions

View File

@ -57,7 +57,7 @@ spring:
hibernate.cache.use_query_cache: false
hibernate.generate_statistics: true
liquibase:
contexts: dev
contexts: dev,sample-data
mail:
host: localhost
port: 25

View File

@ -33,5 +33,17 @@
</createTable>
</changeSet>
<changeSet id="20190402141612-2" author="mhoennig" context="sample-data">
<loadData encoding="UTF-8"
file="config/liquibase/sample-data/customers.csv"
separator=";"
tableName="customer">
<column name="id" type="numeric"/>
<column name="jhi_number" type="numeric"/>
<column name="prefix" type="string"/>
</loadData>
</changeSet>
<!-- jhipster-needle-liquibase-add-changeset - JHipster will add changesets here, do not remove-->
</databaseChangeLog>

View File

@ -0,0 +1,7 @@
id;jhi_number;prefix
1;10001;aaa
2;10002;bbb
3;10003;ccc
4;10004;ddd
5;10098;abc
6;10099;bca
1 id jhi_number prefix
2 1 10001 aaa
3 2 10002 bbb
4 3 10003 ccc
5 4 10004 ddd
6 5 10098 abc
7 6 10099 bca