Add last_transition_error column to tasks [SCI-6610] (#3949)

This commit is contained in:
Alex Kriuchykhin 2022-03-21 14:13:57 +01:00 committed by GitHub
parent 91c97f1dea
commit 186898b442
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 4 deletions

View file

@ -0,0 +1,7 @@
# frozen_string_literal: true
class AddErrorMetadataToTasks < ActiveRecord::Migration[6.1]
def change
add_column :my_modules, :last_transition_error, :jsonb
end
end

View file

@ -989,7 +989,8 @@ CREATE TABLE public.my_modules (
started_on timestamp without time zone,
my_module_status_id bigint,
status_changing boolean DEFAULT false,
changing_from_my_module_status_id bigint
changing_from_my_module_status_id bigint,
last_transition_error jsonb
);
@ -1733,7 +1734,9 @@ CREATE TABLE public.repository_date_time_range_values (
created_by_id bigint,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL,
type character varying
type character varying,
start_time_dup timestamp without time zone,
end_time_dup timestamp without time zone
);
@ -1767,7 +1770,8 @@ CREATE TABLE public.repository_date_time_values (
updated_at timestamp without time zone,
created_by_id bigint NOT NULL,
last_modified_by_id bigint NOT NULL,
type character varying
type character varying,
data_dup timestamp without time zone
);
@ -7978,6 +7982,8 @@ INSERT INTO "schema_migrations" (version) VALUES
('20210906132120'),
('20211103115450'),
('20211123103711'),
('20220203122802');
('20220203122802'),
('20220217104635'),
('20220321122111');