diff options
author | Douwe Maan <douwe@gitlab.com> | 2019-01-15 16:26:27 +0000 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2019-01-16 23:35:34 +0000 |
commit | 8d81aa9d7921b2e220f29571e2ba804508624fb7 (patch) | |
tree | a09d5830856194234e95fa348c1b501edc4ed1ac /db | |
parent | c68de0e9edec903cdb7df7f0dd6730a9f1ae9013 (diff) | |
download | gitlab-ce-8d81aa9d7921b2e220f29571e2ba804508624fb7.tar.gz |
Merge branch 'sh-suppress-duplicate-remote-mirror-notifications' into 'master'
Only send one notification for failed remote mirror
Closes #56222
See merge request gitlab-org/gitlab-ce!24381
(cherry picked from commit 9cd5c5f5359cdebc2ae9ba1d20d2e79bd18edce2)
6fbbd4ab Only send one notification for failed remote mirror
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20190115054216_add_error_notification_sent_to_remote_mirrors.rb | 11 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 13 insertions, 1 deletions
diff --git a/db/migrate/20190115054216_add_error_notification_sent_to_remote_mirrors.rb b/db/migrate/20190115054216_add_error_notification_sent_to_remote_mirrors.rb new file mode 100644 index 00000000000..d8f979a1848 --- /dev/null +++ b/db/migrate/20190115054216_add_error_notification_sent_to_remote_mirrors.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class AddErrorNotificationSentToRemoteMirrors < ActiveRecord::Migration[5.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def change + add_column :remote_mirrors, :error_notification_sent, :boolean + end +end diff --git a/db/schema.rb b/db/schema.rb index 87826881d58..c4902116a3a 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20190103140724) do +ActiveRecord::Schema.define(version: 20190115054216) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -1849,6 +1849,7 @@ ActiveRecord::Schema.define(version: 20190103140724) do t.string "encrypted_credentials_salt" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.boolean "error_notification_sent" t.index ["last_successful_update_at"], name: "index_remote_mirrors_on_last_successful_update_at", using: :btree t.index ["project_id"], name: "index_remote_mirrors_on_project_id", using: :btree end |