diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2019-08-09 16:39:06 +0000 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2019-08-09 16:39:06 +0000 |
commit | fe214a217ca95c2c4a53c501f372367fecaf7f99 (patch) | |
tree | e22b2be732015a48cd8fd857821d621524cc613d /db | |
parent | 28388d61a2bbebe00f55c9d7037d9ff5391f90b3 (diff) | |
parent | b4b1f69a0bc9cc7296790ba4c777e5c953fa6ddd (diff) | |
download | gitlab-ce-fe214a217ca95c2c4a53c501f372367fecaf7f99.tar.gz |
Merge branch '13208-epicissue-has-an-unexpected-default-relative-position-ce' into 'master'
[CE] Remove default `relative_position` from `epic_issues`
See merge request gitlab-org/gitlab-ce!31514
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20190806071559_remove_epic_issues_default_relative_position.rb | 10 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/db/migrate/20190806071559_remove_epic_issues_default_relative_position.rb b/db/migrate/20190806071559_remove_epic_issues_default_relative_position.rb new file mode 100644 index 00000000000..f6db90f6637 --- /dev/null +++ b/db/migrate/20190806071559_remove_epic_issues_default_relative_position.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +class RemoveEpicIssuesDefaultRelativePosition < ActiveRecord::Migration[5.2] + DOWNTIME = false + + def change + change_column_null :epic_issues, :relative_position, true + change_column_default :epic_issues, :relative_position, from: 1073741823, to: nil + end +end diff --git a/db/schema.rb b/db/schema.rb index 0e4a3d07fdd..6674f412140 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: 2019_08_02_235445) do +ActiveRecord::Schema.define(version: 2019_08_06_071559) do # These are extensions that must be enabled in order to support this database enable_extension "pg_trgm" @@ -1194,7 +1194,7 @@ ActiveRecord::Schema.define(version: 2019_08_02_235445) do create_table "epic_issues", id: :serial, force: :cascade do |t| t.integer "epic_id", null: false t.integer "issue_id", null: false - t.integer "relative_position", default: 1073741823, null: false + t.integer "relative_position" t.index ["epic_id"], name: "index_epic_issues_on_epic_id" t.index ["issue_id"], name: "index_epic_issues_on_issue_id", unique: true end |