Commit fbdc335d authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Revertible related_issues table state

parent 3720198d
......@@ -3,7 +3,9 @@ class CreateRelatedIssuesTable < ActiveRecord::Migration
DOWNTIME = false
def change
disable_ddl_transaction!
def up
create_table :related_issues do |t|
t.integer :issue_id, null: false, index: true
t.integer :related_issue_id, null: false, index: true
......@@ -16,4 +18,8 @@ class CreateRelatedIssuesTable < ActiveRecord::Migration
add_concurrent_foreign_key :related_issues, :issues, column: :issue_id
add_concurrent_foreign_key :related_issues, :issues, column: :related_issue_id
end
def down
drop_table :related_issues
end
end
......@@ -1747,8 +1747,8 @@ ActiveRecord::Schema.define(version: 20170602003304) do
add_foreign_key "protected_tag_create_access_levels", "namespaces", column: "group_id"
add_foreign_key "protected_tag_create_access_levels", "protected_tags"
add_foreign_key "protected_tag_create_access_levels", "users"
add_foreign_key "related_issues", "issues"
add_foreign_key "related_issues", "issues", column: "related_issue_id"
add_foreign_key "related_issues", "issues", column: "related_issue_id", name: "fk_f89e405611", on_delete: :cascade
add_foreign_key "related_issues", "issues", name: "fk_7bc934491d", on_delete: :cascade
add_foreign_key "remote_mirrors", "projects"
add_foreign_key "subscriptions", "projects", on_delete: :cascade
add_foreign_key "system_note_metadata", "notes", name: "fk_d83a918cb1", on_delete: :cascade
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment