Update Ruby gems and Yarn packages.

This commit is contained in:
evazion
2022-01-10 11:12:03 -06:00
parent 104234126f
commit fd2db2ff23
9 changed files with 782 additions and 670 deletions

View File

@@ -0,0 +1,14 @@
# frozen_string_literal: true
class AddCronAtToGoodJobs < ActiveRecord::Migration[7.0]
def change
reversible do |dir|
dir.up do
# Ensure this incremental update migration is idempotent
# with monolithic install migration.
return if connection.column_exists?(:good_jobs, :cron_at)
end
end
add_column :good_jobs, :cron_at, :timestamp
end
end

View File

@@ -0,0 +1,20 @@
# frozen_string_literal: true
class AddCronKeyCronAtIndexToGoodJobs < ActiveRecord::Migration[7.0]
disable_ddl_transaction!
def change
reversible do |dir|
dir.up do
# Ensure this incremental update migration is idempotent
# with monolithic install migration.
return if connection.index_name_exists?(:good_jobs, :index_good_jobs_on_cron_key_and_cron_at)
end
end
add_index :good_jobs,
[:cron_key, :cron_at],
algorithm: :concurrently,
name: :index_good_jobs_on_cron_key_and_cron_at,
unique: true
end
end

View File

@@ -0,0 +1,17 @@
# frozen_string_literal: true
class CreateGoodJobProcesses < ActiveRecord::Migration[7.0]
def change
reversible do |dir|
dir.up do
# Ensure this incremental update migration is idempotent
# with monolithic install migration.
return if connection.table_exists?(:good_job_processes)
end
end
create_table :good_job_processes, id: :uuid do |t|
t.timestamps
t.jsonb :state
end
end
end

View File

@@ -0,0 +1,25 @@
# frozen_string_literal: true
class IndexGoodJobJobsOnFinishedAt < ActiveRecord::Migration[7.0]
disable_ddl_transaction!
def change
reversible do |dir|
dir.up do
# Ensure this incremental update migration is idempotent
# with monolithic install migration.
return if connection.index_name_exists?(:good_jobs, :index_good_jobs_on_active_job_id)
end
end
add_index :good_jobs,
[:active_job_id],
name: :index_good_jobs_on_active_job_id,
algorithm: :concurrently
add_index :good_jobs,
[:finished_at],
where: "retried_good_job_id IS NULL AND finished_at IS NOT NULL",
name: :index_good_jobs_jobs_on_finished_at,
algorithm: :concurrently
end
end

View File

@@ -3553,6 +3553,20 @@ CREATE INDEX index_forum_topics_on_title_tsvector ON public.forum_topics USING g
CREATE INDEX index_forum_topics_on_updated_at ON public.forum_topics USING btree (updated_at);
--
-- Name: index_good_jobs_jobs_on_finished_at; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX index_good_jobs_jobs_on_finished_at ON public.good_jobs USING btree (finished_at) WHERE ((retried_good_job_id IS NULL) AND (finished_at IS NOT NULL));
--
-- Name: index_good_jobs_on_active_job_id; Type: INDEX; Schema: public; Owner: -
--
CREATE INDEX index_good_jobs_on_active_job_id ON public.good_jobs USING btree (active_job_id);
--
-- Name: index_good_jobs_on_active_job_id_and_created_at; Type: INDEX; Schema: public; Owner: -
--
@@ -5670,6 +5684,10 @@ INSERT INTO "schema_migrations" (version) VALUES
('20220106172910'),
('20220107014433'),
('20220109032042'),
('20220109163815');
('20220109163815'),
('20220110171021'),
('20220110171022'),
('20220110171023'),
('20220110171024');