From: Tom Hughes Date: Thu, 26 Oct 2023 18:48:25 +0000 (+0100) Subject: Disable transactions for relation member index changes X-Git-Tag: live~998 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/64952fef8b88b69044622b50e5e710acc79561bd Disable transactions for relation member index changes --- diff --git a/db/migrate/20231010194809_correct_relation_members_primary_key.rb b/db/migrate/20231010194809_correct_relation_members_primary_key.rb index 09870836f..e1f7dcf46 100644 --- a/db/migrate/20231010194809_correct_relation_members_primary_key.rb +++ b/db/migrate/20231010194809_correct_relation_members_primary_key.rb @@ -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]