diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-30 17:56:26 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-31 18:34:23 -0300 |
commit | a103a5d9cc2f496854d75492fe3f759fad0a913f (patch) | |
tree | e46e652fb3ade98f6af262c28f471f528d4beb6e /db | |
parent | debb65b5c81094765b2aa515a20e964cd8a14b6f (diff) | |
download | gitlab-ce-a103a5d9cc2f496854d75492fe3f759fad0a913f.tar.gz |
Add option to confidential issues events to trigger Webhooks
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20160830203109_add_confidential_issues_events_to_web_hooks.rb | 15 | ||||
-rw-r--r-- | db/schema.rb | 23 |
2 files changed, 27 insertions, 11 deletions
diff --git a/db/migrate/20160830203109_add_confidential_issues_events_to_web_hooks.rb b/db/migrate/20160830203109_add_confidential_issues_events_to_web_hooks.rb new file mode 100644 index 00000000000..a27947212f6 --- /dev/null +++ b/db/migrate/20160830203109_add_confidential_issues_events_to_web_hooks.rb @@ -0,0 +1,15 @@ +class AddConfidentialIssuesEventsToWebHooks < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_column_with_default :web_hooks, :confidential_issues_events, :boolean, default: false, allow_null: false + end + + def down + remove_column :web_hooks, :confidential_issues_events + end +end diff --git a/db/schema.rb b/db/schema.rb index 963d528d170..a972f89a3a9 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1113,22 +1113,23 @@ ActiveRecord::Schema.define(version: 20160830232601) do add_index "users_star_projects", ["user_id"], name: "index_users_star_projects_on_user_id", using: :btree create_table "web_hooks", force: :cascade do |t| - t.string "url", limit: 2000 + t.string "url", limit: 2000 t.integer "project_id" t.datetime "created_at" t.datetime "updated_at" - t.string "type", default: "ProjectHook" + t.string "type", default: "ProjectHook" t.integer "service_id" - t.boolean "push_events", default: true, null: false - t.boolean "issues_events", default: false, null: false - t.boolean "merge_requests_events", default: false, null: false - t.boolean "tag_push_events", default: false - t.boolean "note_events", default: false, null: false - t.boolean "enable_ssl_verification", default: true - t.boolean "build_events", default: false, null: false - t.boolean "wiki_page_events", default: false, null: false + t.boolean "push_events", default: true, null: false + t.boolean "issues_events", default: false, null: false + t.boolean "merge_requests_events", default: false, null: false + t.boolean "tag_push_events", default: false + t.boolean "note_events", default: false, null: false + t.boolean "enable_ssl_verification", default: true + t.boolean "build_events", default: false, null: false + t.boolean "wiki_page_events", default: false, null: false t.string "token" - t.boolean "pipeline_events", default: false, null: false + t.boolean "pipeline_events", default: false, null: false + t.boolean "confidential_issues_events", default: false, null: false end add_index "web_hooks", ["project_id"], name: "index_web_hooks_on_project_id", using: :btree |