Skip to content

Commit 6c44c23

Browse files
committed
add missing index for foreign key
1 parent bbb64a8 commit 6c44c23

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Fixtures/schemas/schema.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@
6767
<foreign-key foreignTable="bookstore" foreignSchema="bookstore_schemas" onDelete="cascade">
6868
<reference local="bookstore_id" foreign="id"/>
6969
</foreign-key>
70+
<unique>
71+
<unique-column name="bookstore_id"/>
72+
<unique-column name="id"/>
73+
</unique>
7074
</table>
7175

7276
<table name="second_hand_book" schema="second_hand_books">

0 commit comments

Comments
 (0)