summaryrefslogtreecommitdiff
path: root/db/migrate/20230130125541_add_attempts_and_last_error_to_postgres_async_indexes.rb
blob: 31d09e5ee8a65b7aef8856fd6bf3386a11885e5b (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class AddAttemptsAndLastErrorToPostgresAsyncIndexes < Gitlab::Database::Migration[2.1]
  # rubocop:disable Migration/AddLimitToTextColumns
  # limit is added in 20230130130624_add_text_limit_to_postgres_async_indexes_last_error.rb
  def change
    add_column :postgres_async_indexes, :attempts, :integer, null: false, default: 0
    add_column :postgres_async_indexes, :last_error, :text
  end
  # rubocop:enable Migration/AddLimitToTextColumns
end