summaryrefslogtreecommitdiff
path: root/db/migrate/20230130130624_add_text_limit_to_postgres_async_indexes_last_error.rb
blob: 1cd51453fd21f3bbd35355c79cdf4c890e7f2261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class AddTextLimitToPostgresAsyncIndexesLastError < Gitlab::Database::Migration[2.1]
  disable_ddl_transaction!

  def up
    add_text_limit :postgres_async_indexes, :last_error, 10_000
  end

  def down
    remove_text_limit :postgres_async_indexes, :last_error
  end
end