From a21d79ee059fb852e0dc02c3c02c96777d1ea7cc Mon Sep 17 00:00:00 2001 From: Leonardo da Rosa <ldarosa@gitlab.com> Date: Thu, 5 Oct 2023 17:36:18 +0000 Subject: [PATCH] Fix broken master It removes fk_d83a918cb1_tmp after test Changelog: changed --- ...0726144458_swap_notes_id_to_bigint_for_self_managed_spec.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/migrations/20230726144458_swap_notes_id_to_bigint_for_self_managed_spec.rb b/spec/migrations/20230726144458_swap_notes_id_to_bigint_for_self_managed_spec.rb index bef9452f3971..96151de11480 100644 --- a/spec/migrations/20230726144458_swap_notes_id_to_bigint_for_self_managed_spec.rb +++ b/spec/migrations/20230726144458_swap_notes_id_to_bigint_for_self_managed_spec.rb @@ -126,6 +126,9 @@ after do connection.execute('ALTER TABLE system_note_metadata DROP CONSTRAINT IF EXISTS fk_rails_d83a918cb1') + connection.execute('ALTER TABLE system_note_metadata DROP CONSTRAINT IF EXISTS fk_d83a918cb1_tmp') + connection.execute('ALTER TABLE system_note_metadata ADD CONSTRAINT fk_d83a918cb1 FOREIGN KEY (note_id) + REFERENCES notes(id) ON DELETE CASCADE') end it 'swaps the columns' do -- GitLab