-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add miq_task_id column to miq_queue table #167
Add miq_task_id column to miq_queue table #167
Conversation
…to the list of arguments when message deliver. Aslo, it will simplify activating task https://bugzilla.redhat.com/show_bug.cgi?id=1543289
@miq-bot remove-label wip |
@miq-bot add-label core, sql migration |
@yrudman Cannot apply the following labels because they are not recognized: core, sql migration |
@@ -0,0 +1,5 @@ | |||
class LinkQueueAndTask < ActiveRecord::Migration[5.0] | |||
def change | |||
add_reference :miq_queue, :miq_task, :type => "bigint", :index => true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You shouldn't need the explicit :type => "bigint"
, but I could be wrong. Even so, we should probably use a sybol there instead of a string. Also, not sure on adding an index. @kbrock Thoughts on this index?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my mistake, we do not need index now.
…umn - access going from queue item to task
Checked commits yrudman/manageiq-schema@7aefb23~...0ae2566 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 db/migrate/20180213204846_link_queue_and_task.rb
|
Linking
miq_queue
andmiq_tasks
table will:blocking ManageIQ/manageiq#17015
\cc @Fryguy