diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2019-02-11 15:26:55 +0000 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2019-02-11 15:26:55 +0000 |
commit | 42c3ef50aefb0927ba3bdf3646efd4c6185137b5 (patch) | |
tree | c8e80334e912df77c5334ca972db7e7d83eaf663 /db/migrate | |
parent | ef875bd7aa24fd2c68027b8d6c837f33642a606e (diff) | |
parent | a5378665a1dc0b9c8dc3a4fa279a0eb78aac5aac (diff) | |
download | gitlab-ce-42c3ef50aefb0927ba3bdf3646efd4c6185137b5.tar.gz |
Merge branch '52424-goodbye-hipchat' into 'master'
Remove HipChat integration from GitLab
Closes #52424
See merge request gitlab-org/gitlab-ce!22223
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20190107151020_add_services_type_index.rb | 20 | ||||
-rw-r--r-- | db/migrate/20190107151029_remove_hipchat_services.rb | 16 |
2 files changed, 36 insertions, 0 deletions
diff --git a/db/migrate/20190107151020_add_services_type_index.rb b/db/migrate/20190107151020_add_services_type_index.rb new file mode 100644 index 00000000000..26b5bd58750 --- /dev/null +++ b/db/migrate/20190107151020_add_services_type_index.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddServicesTypeIndex < ActiveRecord::Migration[5.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_concurrent_index :services, :type unless index_exists?(:services, :type) + end + + def down + remove_concurrent_index :services, :type if index_exists?(:services, :type) + end +end diff --git a/db/migrate/20190107151029_remove_hipchat_services.rb b/db/migrate/20190107151029_remove_hipchat_services.rb new file mode 100644 index 00000000000..4741ec88907 --- /dev/null +++ b/db/migrate/20190107151029_remove_hipchat_services.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class RemoveHipchatServices < ActiveRecord::Migration[5.0] + DOWNTIME = false + + def up + execute "DELETE FROM services WHERE type = 'HipchatService'" + end + + def down + # no-op + end +end |