debian-mirror-gitlab/db/migrate/gpg_keys_limits_to_mysql.rb
2018-12-23 12:14:25 +05:30

14 lines
315 B
Ruby

class IncreaseMysqlTextLimitForGpgKeys < ActiveRecord::Migration[4.2]
# Set this constant to true if this migration requires downtime.
DOWNTIME = false
def up
return unless Gitlab::Database.mysql?
change_column :gpg_keys, :key, :text, limit: 16.megabytes - 1
end
def down
# no-op
end
end