Skip to content

Commit fbdb6ec

Browse files
Added liquibase scripts for relationship configuration.
1 parent b8f81ec commit fbdb6ec

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
2+
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
5+
<include file="migration/relationship-configuration-schema.changelog-v1.xml"/>
6+
</databaseChangeLog>
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
2+
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
5+
<changeSet author="ONIXLabs" id="create-relationship-configuration_states">
6+
<createTable tableName="relationship_configuration_states">
7+
<column name="output_index" type="int">
8+
<constraints nullable="false"/>
9+
</column>
10+
<column name="transaction_id" type="nvarchar(64)">
11+
<constraints nullable="false"/>
12+
</column>
13+
<column name="linear_id" type="uuid">
14+
<constraints nullable="false"/>
15+
</column>
16+
<column name="external_id" type="nvarchar(255)"/>
17+
<column name="relationship_linear_id" type="uuid">
18+
<constraints nullable="false"/>
19+
</column>
20+
<column name="relationship_external_id" type="nvarchar(255)"/>
21+
<column name="network_value" type="nvarchar(255)">
22+
<constraints nullable="false"/>
23+
</column>
24+
<column name="network_operator" type="nvarchar(255)"/>
25+
<column name="network_hash" type="nvarchar(64)">
26+
<constraints nullable="false"/>
27+
</column>
28+
<column name="configuration_hash" type="nvarchar(64)">
29+
<constraints nullable="false"/>
30+
</column>
31+
<column name="hash" type="nvarchar(64)">
32+
<constraints nullable="false" unique="true"/>
33+
</column>
34+
</createTable>
35+
<addPrimaryKey columnNames="output_index, transaction_id"
36+
constraintName="PK_relationship_configuration_states"
37+
tableName="relationship_configuration_states"/>
38+
</changeSet>
39+
</databaseChangeLog>

0 commit comments

Comments
 (0)