Commit a46aa197 authored by Andreas Brandl's avatar Andreas Brandl

Quote function name

parent 0b857c7e
...@@ -42,7 +42,7 @@ class FinalizePushEventPayloadsBigintConversion < ActiveRecord::Migration[6.1] ...@@ -42,7 +42,7 @@ class FinalizePushEventPayloadsBigintConversion < ActiveRecord::Migration[6.1]
# regenerate the execution plan for it. This is to avoid type mismatch errors like # regenerate the execution plan for it. This is to avoid type mismatch errors like
# "type of parameter 15 (bigint) does not match that when preparing the plan (integer)" # "type of parameter 15 (bigint) does not match that when preparing the plan (integer)"
function_name = Gitlab::Database::UnidirectionalCopyTrigger.on_table(TABLE_NAME).name(:event_id, :event_id_convert_to_bigint) function_name = Gitlab::Database::UnidirectionalCopyTrigger.on_table(TABLE_NAME).name(:event_id, :event_id_convert_to_bigint)
execute "ALTER FUNCTION #{function_name} RESET ALL" execute "ALTER FUNCTION #{quote_table_name(function_name)} RESET ALL"
# Swap defaults # Swap defaults
change_column_default TABLE_NAME, :event_id, nil change_column_default TABLE_NAME, :event_id, nil
......
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