diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-19 22:10:21 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-19 22:10:21 +0300 |
commit | 125c07fa0aa31e6c83c8fcc90df623c2ef85832f (patch) | |
tree | 0955febd36b8cbe44b18353081cb48253936d290 /db | |
parent | 4250c349152e252ff36bab54c53d7b267a5b1232 (diff) | |
download | gitlab-ce-125c07fa0aa31e6c83c8fcc90df623c2ef85832f.tar.gz |
Add iid field to issues and MR
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20130819182730_add_internal_ids_to_issues_and_mr.rb | 6 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/db/migrate/20130819182730_add_internal_ids_to_issues_and_mr.rb b/db/migrate/20130819182730_add_internal_ids_to_issues_and_mr.rb new file mode 100644 index 00000000000..e55ae38f144 --- /dev/null +++ b/db/migrate/20130819182730_add_internal_ids_to_issues_and_mr.rb @@ -0,0 +1,6 @@ +class AddInternalIdsToIssuesAndMr < ActiveRecord::Migration + def change + add_column :issues, :iid, :integer + add_column :merge_requests, :iid, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index e0e7d47b92e..c2ba5b65fc3 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20130812143708) do +ActiveRecord::Schema.define(:version => 20130819182730) do create_table "deploy_keys_projects", :force => true do |t| t.integer "deploy_key_id", :null => false @@ -62,6 +62,7 @@ ActiveRecord::Schema.define(:version => 20130812143708) do t.text "description" t.integer "milestone_id" t.string "state" + t.integer "iid" end add_index "issues", ["assignee_id"], :name => "index_issues_on_assignee_id" @@ -98,6 +99,7 @@ ActiveRecord::Schema.define(:version => 20130812143708) do t.string "state" t.string "merge_status" t.integer "target_project_id", :null => false + t.integer "iid" end add_index "merge_requests", ["assignee_id"], :name => "index_merge_requests_on_assignee_id" |