-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ent 5267 #13
Open
snedamle
wants to merge
5
commits into
master
Choose a base branch
from
ENT-5267
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Ent 5267 #13
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0443ec5
ENT-5267 Add liquibase migration scripts to samples
snedamle f007925
ENT-5267 Adding @Type (type = "uuid-char") for uuid type
snedamle cec59ac
making uuid datatype to NVARCHAR(64) in liquibase script
snedamle 7e0a29a
change datatype from uuid to varchar in liquibase script
snedamle 3f3609b
adding some info to readme
snedamle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
Basic/cordapp-example/workflows-java/src/main/resources/migration/iou.changelog-master.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.1" encoding="UTF-8" standalone="no"?> | ||
<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-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd"> | ||
|
||
<include file="migration/iou.changelog-v1.xml"/> | ||
</databaseChangeLog> | ||
20 changes: 20 additions & 0 deletions
20
Basic/cordapp-example/workflows-java/src/main/resources/migration/iou.changelog-v1.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.1" encoding="UTF-8" standalone="no"?> | ||
<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-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd"> | ||
<changeSet author="R3.Corda" id="create_iou_state"> | ||
<createTable tableName="iou_states"> | ||
<column name="output_index" type="INT"> | ||
<constraints nullable="false"/> | ||
</column> | ||
<column name="transaction_id" type="NVARCHAR(64)"> | ||
<constraints nullable="false"/> | ||
</column> | ||
<column name="value" type="int"/> | ||
<column name="lender" type="NVARCHAR(64)"/> | ||
<column name="borrower" type="NVARCHAR(64)"/> | ||
<column name="linear_id" type="NVARCHAR(64)"/> | ||
</createTable> | ||
</changeSet> | ||
</databaseChangeLog> |
8 changes: 8 additions & 0 deletions
8
Basic/cordapp-example/workflows-kotlin/src/main/resources/migration/iou.changelog-master.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.1" encoding="UTF-8" standalone="no"?> | ||
<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-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd"> | ||
|
||
<include file="migration/iou.changelog-v1.xml"/> | ||
</databaseChangeLog> |
20 changes: 20 additions & 0 deletions
20
Basic/cordapp-example/workflows-kotlin/src/main/resources/migration/iou.changelog-v1.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.1" encoding="UTF-8" standalone="no"?> | ||
<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-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd"> | ||
<changeSet author="R3.Corda" id="create_iou_state"> | ||
<createTable tableName="iou_states"> | ||
<column name="output_index" type="INT"> | ||
<constraints nullable="false"/> | ||
</column> | ||
<column name="transaction_id" type="NVARCHAR(64)"> | ||
<constraints nullable="false"/> | ||
</column> | ||
<column name="value" type="int"/> | ||
<column name="lender" type="NVARCHAR(64)"/> | ||
<column name="borrower" type="NVARCHAR(64)"/> | ||
<column name="linear_id" type="NVARCHAR(64)"/> | ||
</createTable> | ||
</changeSet> | ||
</databaseChangeLog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...leState-carinsurance/workflows/src/main/resources/migration/claim-detail.changelog-v1.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.1" encoding="UTF-8" standalone="no"?> | ||
<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-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd"> | ||
<changeSet author="R3.Corda" id="create_claim_detail_state"> | ||
<createTable tableName="claim_detail"> | ||
<column name="output_index" type="INT"> | ||
<constraints nullable="false"/> | ||
</column> | ||
<column name="transaction_id" type="NVARCHAR(64)"> | ||
<constraints nullable="false"/> | ||
</column> | ||
<column name="claimAmount" type="int"/> | ||
<column name="claimNumber" type="NVARCHAR(64)"/> | ||
<column name="claimDescription" type="NVARCHAR(64)"/> | ||
<column name="id" type="NVARCHAR(64)"/> | ||
|
||
</createTable> | ||
</changeSet> | ||
</databaseChangeLog> |
23 changes: 23 additions & 0 deletions
23
...ate-carinsurance/workflows/src/main/resources/migration/insurance-detail.changelog-v1.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.1" encoding="UTF-8" standalone="no"?> | ||
<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-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd"> | ||
<changeSet author="R3.Corda" id="create_insurance_detail_state"> | ||
<createTable tableName="insurance_detail"> | ||
<column name="output_index" type="INT"> | ||
<constraints nullable="false"/> | ||
</column> | ||
<column name="transaction_id" type="NVARCHAR(64)"> | ||
<constraints nullable="false"/> | ||
</column> | ||
<column name="policyNumber" type="NVARCHAR(64)"/> | ||
<column name="duration" type="int"/> | ||
<column name="premium" type="int"/> | ||
<column name="insuredvalue" type="BIGINT"/> | ||
<column name="id" type="NVARCHAR(64)"/> | ||
<column name="registrationnumber" type="NVARCHAR(64)"/> | ||
|
||
</createTable> | ||
</changeSet> | ||
</databaseChangeLog> |
11 changes: 11 additions & 0 deletions
11
...eState-carinsurance/workflows/src/main/resources/migration/insurance.changelog-master.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.1" encoding="UTF-8" standalone="no"?> | ||
<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-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd"> | ||
|
||
<include file="migration/claim-detail.changelog-v1.xml"/> | ||
<include file="migration/insurance-detail.changelog-v1.xml"/> | ||
<include file="migration/vehicle-detail.changelog-v1.xml"/> | ||
|
||
</databaseChangeLog> |
20 changes: 20 additions & 0 deletions
20
...State-carinsurance/workflows/src/main/resources/migration/vehicle-detail.changelog-v1.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.1" encoding="UTF-8" standalone="no"?> | ||
<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-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd"> | ||
<changeSet author="R3.Corda" id="create_vehicle_detail_state"> | ||
<createTable tableName="vehicle_detail"> | ||
|
||
<column name="id" type="NVARCHAR(64)"/> | ||
<column name="registrationNumber" type="NVARCHAR(64)"/> | ||
<column name="chasisNumber" type="NVARCHAR(64)"/> | ||
<column name="make" type="NVARCHAR(64)"/> | ||
<column name="model" type="NVARCHAR(64)"/> | ||
<column name="variant" type="NVARCHAR(64)"/> | ||
<column name="color" type="NVARCHAR(64)"/> | ||
<column name="fuelType" type="NVARCHAR(64)"/> | ||
|
||
</createTable> | ||
</changeSet> | ||
</databaseChangeLog> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have changelog v1 and v2, but only including v1 here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry i will remove v2. I had added that to test database upgrades.