diff options
author | Alex Buijs <abuijs@gitlab.com> | 2019-08-02 11:10:44 +0300 |
---|---|---|
committer | Alex Buijs <abuijs@gitlab.com> | 2019-08-07 13:19:57 +0300 |
commit | a98493eddd82d052e26bb95008816cd1c9688161 (patch) | |
tree | 2e3d6f575f0c1dad75aff319e1b4a953d27c743f /db/post_migrate | |
parent | 5edaf4e59937a961f24eb596d963678f8a332bd2 (diff) |
Add migration for CE as well
Diffstat (limited to 'db/post_migrate')
-rw-r--r-- | db/post_migrate/20190802091750_cleanup_application_settings_snowplow_collector_uri_rename.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/post_migrate/20190802091750_cleanup_application_settings_snowplow_collector_uri_rename.rb b/db/post_migrate/20190802091750_cleanup_application_settings_snowplow_collector_uri_rename.rb new file mode 100644 index 00000000000..768ece925c6 --- /dev/null +++ b/db/post_migrate/20190802091750_cleanup_application_settings_snowplow_collector_uri_rename.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class CleanupApplicationSettingsSnowplowCollectorUriRename < ActiveRecord::Migration[5.2] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + cleanup_concurrent_column_rename :application_settings, :snowplow_collector_uri, :snowplow_collector_hostname + end + + def down + rename_column_concurrently :application_settings, :snowplow_collector_hostname, :snowplow_collector_uri + end +end |