diff options
author | Sean McGivern <sean@gitlab.com> | 2019-04-09 14:06:36 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-04-10 12:58:18 +0100 |
commit | cd9ae6bb820ae8ec98cce38d958298e081860dab (patch) | |
tree | 5ae1b923e40d42392c6443e2308722bf670727f1 /db | |
parent | 0de88f57997ef1d60467464f15411dae0c7ee870 (diff) | |
download | gitlab-ce-cd9ae6bb820ae8ec98cce38d958298e081860dab.tar.gz |
Revert "Remove HipChat integration from GitLab"
This reverts commit a5378665a1dc0b9c8dc3a4fa279a0eb78aac5aac.
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20190107151020_add_services_type_index.rb | 20 | ||||
-rw-r--r-- | db/migrate/20190107151029_remove_hipchat_services.rb | 16 | ||||
-rw-r--r-- | db/schema.rb | 1 |
3 files changed, 0 insertions, 37 deletions
diff --git a/db/migrate/20190107151020_add_services_type_index.rb b/db/migrate/20190107151020_add_services_type_index.rb deleted file mode 100644 index 26b5bd58750..00000000000 --- a/db/migrate/20190107151020_add_services_type_index.rb +++ /dev/null @@ -1,20 +0,0 @@ -# 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 deleted file mode 100644 index 4741ec88907..00000000000 --- a/db/migrate/20190107151029_remove_hipchat_services.rb +++ /dev/null @@ -1,16 +0,0 @@ -# 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 diff --git a/db/schema.rb b/db/schema.rb index d1b3672725d..df47f988901 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1996,7 +1996,6 @@ ActiveRecord::Schema.define(version: 20190326164045) do t.boolean "confidential_note_events", default: true t.index ["project_id"], name: "index_services_on_project_id", using: :btree t.index ["template"], name: "index_services_on_template", using: :btree - t.index ["type"], name: "index_services_on_type", using: :btree end create_table "shards", force: :cascade do |t| |