Skip to content

Commit 8cfce2d

Browse files
committed
Add missing index for release to blocked_executions table
I inadvertently lost this one on #57.
1 parent 18681cf commit 8cfce2d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddMissingIndexToBlockedExecutions < ActiveRecord::Migration[7.1]
2+
def change
3+
add_index :solid_queue_blocked_executions, [ :concurrency_key, :priority, :job_id ], name: "index_solid_queue_blocked_executions_for_release"
4+
end
5+
end

test/dummy/db/schema.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[7.1].define(version: 2023_12_11_200639) do
13+
ActiveRecord::Schema[7.1].define(version: 2024_01_10_143450) do
1414
create_table "job_results", charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t|
1515
t.string "queue_name"
1616
t.string "status"
@@ -26,6 +26,7 @@
2626
t.string "concurrency_key", null: false
2727
t.datetime "expires_at", null: false
2828
t.datetime "created_at", null: false
29+
t.index ["concurrency_key", "priority", "job_id"], name: "index_solid_queue_blocked_executions_for_release"
2930
t.index ["expires_at", "concurrency_key"], name: "index_solid_queue_blocked_executions_for_maintenance"
3031
t.index ["job_id"], name: "index_solid_queue_blocked_executions_on_job_id", unique: true
3132
end

0 commit comments

Comments
 (0)