diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-11-06 17:03:31 -0600 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2017-11-06 17:03:31 -0600 |
commit | a46d32412ec93be2d6d10bd4bcbdd23b69d31865 (patch) | |
tree | b017b0a0ff5628c11a42cf5c853414b46d77be10 /db | |
parent | cb7d63f90753617920cc6f9168a48dc998dc9ee4 (diff) | |
parent | 243530360edac31f309bd3706b2d5117f6d526ad (diff) | |
download | gitlab-ce-a46d32412ec93be2d6d10bd4bcbdd23b69d31865.tar.gz |
Merge branch 'master' into 38464-k8s-apps
Conflicts:
db/schema.rb
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20171101134435_remove_ref_fetched_from_merge_requests.rb | 14 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 15 insertions, 2 deletions
diff --git a/db/post_migrate/20171101134435_remove_ref_fetched_from_merge_requests.rb b/db/post_migrate/20171101134435_remove_ref_fetched_from_merge_requests.rb new file mode 100644 index 00000000000..4e8f495d65d --- /dev/null +++ b/db/post_migrate/20171101134435_remove_ref_fetched_from_merge_requests.rb @@ -0,0 +1,14 @@ +class RemoveRefFetchedFromMergeRequests < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + # Set this constant to true if this migration requires downtime. + DOWNTIME = false + + # We don't need to cache this anymore: the refs are now created + # upon save/update and there is no more use for this flag + # + # See https://gitlab.com/gitlab-org/gitlab-ce/issues/36061 + def change + remove_column :merge_requests, :ref_fetched, :boolean + end +end diff --git a/db/schema.rb b/db/schema.rb index 507024c20de..efd24bd0eeb 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20171031100710) do +ActiveRecord::Schema.define(version: 20171106101200) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -1036,7 +1036,6 @@ ActiveRecord::Schema.define(version: 20171031100710) do t.datetime "last_edited_at" t.integer "last_edited_by_id" t.integer "head_pipeline_id" - t.boolean "ref_fetched" t.string "merge_jid" t.boolean "discussion_locked" t.integer "latest_merge_request_diff_id" |