Skip to content

Commit 920c363

Browse files
committed
fix: sequel migration 25 for mysql
1 parent 0ee48e1 commit 920c363

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
Sequel.migration do
22
up do
3+
PactBroker::MigrationHelper.with_mysql do
4+
run("SET FOREIGN_KEY_CHECKS = 0")
5+
end
6+
37
alter_table(:pact_versions) do
48
set_column_not_null(:consumer_id)
59
set_column_not_null(:provider_id)
610
end
11+
12+
PactBroker::MigrationHelper.with_mysql do
13+
run("SET FOREIGN_KEY_CHECKS = 1")
14+
end
715
end
816
end

0 commit comments

Comments
 (0)