blob: 3d4a8064a892a8fc92d1d6c3b4588b260d00234c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# frozen_string_literal: true
class RenamePlansTitlesWithLegacyPlanNames < Gitlab::Database::Migration[2.1]
disable_ddl_transaction!
restrict_gitlab_migration gitlab_schema: :gitlab_main_clusterwide
def up
execute "UPDATE plans SET title = 'Premium' WHERE name = 'premium'"
execute "UPDATE plans SET title = 'Ultimate' WHERE name = 'ultimate'"
end
def down
# no-op
# We don't know or even want to revert back to the old plan titles.
end
end
|