]> git.openstreetmap.org Git - rails.git/commitdiff
Disable transactions for relation member index changes
authorTom Hughes <tom@compton.nu>
Thu, 26 Oct 2023 18:48:25 +0000 (19:48 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 26 Oct 2023 18:48:25 +0000 (19:48 +0100)
db/migrate/20231010194809_correct_relation_members_primary_key.rb

index 09870836ff21112558998ca3fc1ec7ed48f9913f..e1f7dcf467881cc78f24fafe573206ce387d5640 100644 (file)
@@ -1,4 +1,6 @@
 class CorrectRelationMembersPrimaryKey < ActiveRecord::Migration[7.0]
+  disable_ddl_transaction!
+
   def up
     alter_primary_key :current_relation_members, [:relation_id, :sequence_id]
     alter_primary_key :relation_members, [:relation_id, :version, :sequence_id]