generate some Customer sample data for context="sample-data"
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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>
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
		
		
			
  | 
		Reference in New Issue
	
	Block a user