Commit d1b7eaaf authored by Tiger Watson's avatar Tiger Watson

Merge branch '341299-fix-migration-error-after-rollback' into 'master'

Add OR REPLACE when creating function

See merge request gitlab-org/gitlab!70726
parents 93e889b3 ddcc5eda
......@@ -6,7 +6,7 @@ class AddFunctionForInsertingDeletedRecords < ActiveRecord::Migration[6.1]
def up
execute(<<~SQL)
CREATE FUNCTION #{DELETED_RECORDS_INSERT_FUNCTION_NAME}()
CREATE OR REPLACE FUNCTION #{DELETED_RECORDS_INSERT_FUNCTION_NAME}()
RETURNS TRIGGER AS
$$
BEGIN
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment