Skip to content

Commit 979c16f

Browse files
Shkarinphp-coder
authored andcommitted
transaction_participants: name and url should be unique.
Fix #476
1 parent 486a253 commit 979c16f

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/main/resources/liquibase/version/0.4.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@
2121
<include file="0.4/2016-09-28--add_creator_data_to_series_sales.xml" relativeToChangelogFile="true" />
2222
<include file="0.4/2016-09-28--add_constraints_to_series-first-price.xml" relativeToChangelogFile="true" />
2323
<include file="0.4/2016-10-10--change_series_sales_date_type.xml" relativeToChangelogFile="true" />
24+
<include file="0.4/2016-11-29--add-unique-key-transaction_participants-table.xml" relativeToChangelogFile="true" />
2425

2526
</databaseChangeLog>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<databaseChangeLog
3+
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
6+
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd">
7+
8+
<changeSet id="add-unique-key-transaction_participants-table" author="john" context="scheme">
9+
10+
<addUniqueConstraint
11+
tableName="transaction_participants"
12+
columnNames="name, url"
13+
constraintName="uc_transaction_participants_name_url"/>
14+
</changeSet>
15+
16+
</databaseChangeLog>

0 commit comments

Comments
 (0)