Skip to content

Commit 79e3029

Browse files
authored
Merge pull request #576 from code0-tech/renovate/good_job-4.x-lockfile
Update dependency good_job to v4.12.0
2 parents 506fe4d + f5bc557 commit 79e3029

File tree

4 files changed

+26
-6
lines changed

4 files changed

+26
-6
lines changed

Gemfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ GEM
111111
drb (2.2.3)
112112
erb (5.0.2)
113113
erubi (1.13.1)
114-
et-orbi (1.2.11)
114+
et-orbi (1.3.0)
115115
tzinfo
116116
factory_bot (6.5.5)
117117
activesupport (>= 6.1.0)
@@ -120,12 +120,12 @@ GEM
120120
railties (>= 6.1.0)
121121
ffi (1.17.1)
122122
fiber-storage (0.1.2)
123-
fugit (1.11.1)
123+
fugit (1.11.2)
124124
et-orbi (~> 1, >= 1.2.11)
125125
raabro (~> 1.4)
126-
globalid (1.2.1)
126+
globalid (1.3.0)
127127
activesupport (>= 6.1)
128-
good_job (4.11.2)
128+
good_job (4.12.0)
129129
activejob (>= 6.1.0)
130130
activerecord (>= 6.1.0)
131131
concurrent-ruby (>= 1.3.1)
@@ -227,7 +227,7 @@ GEM
227227
nio4r (~> 2.0)
228228
raabro (1.4.0)
229229
racc (1.8.1)
230-
rack (3.1.16)
230+
rack (3.2.1)
231231
rack-session (2.1.1)
232232
base64 (>= 0.1.0)
233233
rack (>= 3.0.0)
@@ -366,7 +366,7 @@ GEM
366366
simplecov_json_formatter (0.1.4)
367367
stringio (3.1.7)
368368
test-prof (1.4.4)
369-
thor (1.3.2)
369+
thor (1.4.0)
370370
timeout (0.4.3)
371371
tucana (0.0.35)
372372
grpc (~> 1.64)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# frozen_string_literal: true
2+
3+
class AddIndexGoodJobsJobClass < Code0::ZeroTrack::Database::Migration[1.0]
4+
disable_ddl_transaction!
5+
6+
def change
7+
reversible do |dir|
8+
dir.up do
9+
# Ensure this incremental update migration is idempotent
10+
# with monolithic install migration.
11+
return if connection.index_exists? :good_jobs, :job_class
12+
end
13+
end
14+
15+
add_index :good_jobs, :job_class, algorithm: :concurrently
16+
end
17+
end
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
828b64876c1a7539a26f3069e54b9edb3fd49b29ba776cc3cdb36df7e87df720

db/structure.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,6 +1139,8 @@ CREATE INDEX index_good_jobs_on_cron_key_and_created_at_cond ON good_jobs USING
11391139

11401140
CREATE UNIQUE INDEX index_good_jobs_on_cron_key_and_cron_at_cond ON good_jobs USING btree (cron_key, cron_at) WHERE (cron_key IS NOT NULL);
11411141

1142+
CREATE INDEX index_good_jobs_on_job_class ON good_jobs USING btree (job_class);
1143+
11421144
CREATE INDEX index_good_jobs_on_labels ON good_jobs USING gin (labels) WHERE (labels IS NOT NULL);
11431145

11441146
CREATE INDEX index_good_jobs_on_locked_by_id ON good_jobs USING btree (locked_by_id) WHERE (locked_by_id IS NOT NULL);

0 commit comments

Comments
 (0)