diff options
Diffstat (limited to 'db/migrate/20230202023208_initialize_conversion_of_suggestions_note_id_to_bigint.rb')
-rw-r--r-- | db/migrate/20230202023208_initialize_conversion_of_suggestions_note_id_to_bigint.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/db/migrate/20230202023208_initialize_conversion_of_suggestions_note_id_to_bigint.rb b/db/migrate/20230202023208_initialize_conversion_of_suggestions_note_id_to_bigint.rb new file mode 100644 index 00000000000..9b271089801 --- /dev/null +++ b/db/migrate/20230202023208_initialize_conversion_of_suggestions_note_id_to_bigint.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +class InitializeConversionOfSuggestionsNoteIdToBigint < Gitlab::Database::Migration[2.1] + TABLE = :suggestions + COLUMNS = %i[note_id] + + enable_lock_retries! + + def up + initialize_conversion_of_integer_to_bigint(TABLE, COLUMNS) + end + + def down + revert_initialize_conversion_of_integer_to_bigint(TABLE, COLUMNS) + end +end |