added sample data for memberships
This commit is contained in:
		@@ -0,0 +1,19 @@
 | 
				
			|||||||
 | 
					<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||||
 | 
					<databaseChangeLog
 | 
				
			||||||
 | 
					    xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
 | 
				
			||||||
 | 
					    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">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <changeSet id="sample-data-Membership-01" author="mhoennig" context="sample-data">
 | 
				
			||||||
 | 
					        <loadData encoding="UTF-8"
 | 
				
			||||||
 | 
					                  file="config/liquibase/sample-data/memberships.csv"
 | 
				
			||||||
 | 
					                  separator=";"
 | 
				
			||||||
 | 
					                  tableName="membership">
 | 
				
			||||||
 | 
					            <column name="id" type="numeric"/>
 | 
				
			||||||
 | 
					            <column name="customer" type="numeric"/>
 | 
				
			||||||
 | 
					            <column name="since_date" type="date"/>
 | 
				
			||||||
 | 
					            <column name="until_date" type="date"/>
 | 
				
			||||||
 | 
					        </loadData>
 | 
				
			||||||
 | 
					    </changeSet>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					</databaseChangeLog>
 | 
				
			||||||
@@ -21,5 +21,6 @@
 | 
				
			|||||||
    <include file="config/liquibase/changelog/sample-data-Customer.xml" relativeToChangelogFile="false"/>
 | 
					    <include file="config/liquibase/changelog/sample-data-Customer.xml" relativeToChangelogFile="false"/>
 | 
				
			||||||
    <include file="config/liquibase/changelog/sample-data-Contact.xml" relativeToChangelogFile="false"/>
 | 
					    <include file="config/liquibase/changelog/sample-data-Contact.xml" relativeToChangelogFile="false"/>
 | 
				
			||||||
    <include file="config/liquibase/changelog/sample-data-CustomerContact.xml" relativeToChangelogFile="false"/>
 | 
					    <include file="config/liquibase/changelog/sample-data-CustomerContact.xml" relativeToChangelogFile="false"/>
 | 
				
			||||||
 | 
					    <include file="config/liquibase/changelog/sample-data-Membership.xml" relativeToChangelogFile="false"/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
</databaseChangeLog>
 | 
					</databaseChangeLog>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					id;customer_id;since_date;until_date
 | 
				
			||||||
 | 
					1;1;2001-04-10;2007-12-31
 | 
				
			||||||
 | 
					2;1;2017-01-15;null
 | 
				
			||||||
 | 
					3;3;2003-05-15;2019-12-31
 | 
				
			||||||
 | 
					4;4;2017-05-15;null
 | 
				
			||||||
 | 
					5;5;2011-08-18;null
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		
		
			
  | 
		Reference in New Issue
	
	Block a user