Skip to content

Commit

Permalink
Audit tables updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ThorntonMatthew committed Jun 27, 2023
1 parent d0e7102 commit d38eb98
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
nextval('caseflow_audit.vbms_communication_packages_audit_id_seq'::regclass),
'D',
OLD.id,
OLD.uuid,
OLD.file_number,
OLD.copies,
OLD.status,
Expand All @@ -29,6 +30,7 @@
nextval('caseflow_audit.vbms_communication_packages_audit_id_seq'::regclass),
'U',
NEW.id,
NEW.uuid,
NEW.file_number,
NEW.copies,
NEW.status,
Expand All @@ -44,6 +46,7 @@
nextval('caseflow_audit.vbms_communication_packages_audit_id_seq'::regclass),
'I',
NEW.id,
NEW.uuid,
NEW.file_number,
NEW.copies,
NEW.status,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ begin
nextval('caseflow_audit.vbms_communication_packages_audit_id_seq'::regclass),
'D',
OLD.id,
OLD.uuid,
OLD.file_number,
OLD.copies,
OLD.status,
Expand All @@ -23,6 +24,7 @@ begin
nextval('caseflow_audit.vbms_communication_packages_audit_id_seq'::regclass),
'U',
NEW.id,
NEW.uuid,
NEW.file_number,
NEW.copies,
NEW.status,
Expand All @@ -38,6 +40,7 @@ begin
nextval('caseflow_audit.vbms_communication_packages_audit_id_seq'::regclass),
'I',
NEW.id,
NEW.uuid,
NEW.file_number,
NEW.copies,
NEW.status,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
nextval('caseflow_audit.vbms_distribution_destinations_audit_id_seq'::regclass),
'D',
OLD.id,
OLD.uuid,
OLD.destination_type,
OLD.address_line_1,
OLD.address_line_2,
Expand All @@ -39,6 +40,7 @@
nextval('caseflow_audit.vbms_distribution_destinations_audit_id_seq'::regclass),
'U',
NEW.id,
NEW.uuid,
NEW.destination_type,
NEW.address_line_1,
NEW.address_line_2,
Expand All @@ -64,6 +66,7 @@
nextval('caseflow_audit.vbms_distribution_destinations_audit_id_seq'::regclass),
'I',
NEW.id,
NEW.uuid,
NEW.destination_type,
NEW.address_line_1,
NEW.address_line_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ begin
nextval('caseflow_audit.vbms_distribution_destinations_audit_id_seq'::regclass),
'D',
OLD.id,
OLD.uuid,
OLD.destination_type,
OLD.address_line_1,
OLD.address_line_2,
Expand All @@ -33,6 +34,7 @@ begin
nextval('caseflow_audit.vbms_distribution_destinations_audit_id_seq'::regclass),
'U',
NEW.id,
NEW.uuid,
NEW.destination_type,
NEW.address_line_1,
NEW.address_line_2,
Expand All @@ -58,6 +60,7 @@ begin
nextval('caseflow_audit.vbms_distribution_destinations_audit_id_seq'::regclass),
'I',
NEW.id,
NEW.uuid,
NEW.destination_type,
NEW.address_line_1,
NEW.address_line_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
nextval('caseflow_audit.vbms_distributions_audit_id_seq'::regclass),
'D',
OLD.id,
OLD.uuid,
OLD.recipient_type,
OLD.name,
OLD.first_name,
Expand All @@ -33,6 +34,7 @@
nextval('caseflow_audit.vbms_distributions_audit_id_seq'::regclass),
'U',
NEW.id,
NEW.uuid,
NEW.recipient_type,
NEW.name,
NEW.first_name,
Expand All @@ -52,6 +54,7 @@
nextval('caseflow_audit.vbms_distributions_audit_id_seq'::regclass),
'I',
NEW.id,
NEW.uuid,
NEW.recipient_type,
NEW.name,
NEW.first_name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ begin
nextval('caseflow_audit.vbms_distributions_audit_id_seq'::regclass),
'D',
OLD.id,
OLD.uuid,
OLD.recipient_type,
OLD.name,
OLD.first_name,
Expand All @@ -27,6 +28,7 @@ begin
nextval('caseflow_audit.vbms_distributions_audit_id_seq'::regclass),
'U',
NEW.id,
NEW.uuid,
NEW.recipient_type,
NEW.name,
NEW.first_name,
Expand All @@ -46,6 +48,7 @@ begin
nextval('caseflow_audit.vbms_distributions_audit_id_seq'::regclass),
'I',
NEW.id,
NEW.uuid,
NEW.recipient_type,
NEW.name,
NEW.first_name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
id BIGSERIAL PRIMARY KEY,
type_of_change CHAR(1) not null,
vbms_communication_package_id bigint not null,
uuid varchar NULL,
file_number varchar NULL,
copies int8 NULL DEFAULT 1,
status varchar NULL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ create table caseflow_audit.vbms_communication_packages_audit (
id BIGSERIAL PRIMARY KEY,
type_of_change CHAR(1) not null,
vbms_communication_package_id bigint not null,
uuid varchar NULL,
file_number varchar NULL,
copies int8 NULL DEFAULT 1,
status varchar NULL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
id BIGSERIAL PRIMARY KEY,
type_of_change CHAR(1) not null,
vbms_distribution_destinations_id bigint not null,
uuid varchar NULL,
destination_type varchar NOT NULL,
address_line_1 varchar NOT NULL,
address_line_2 varchar NULL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ create table caseflow_audit.vbms_distribution_destinations_audit (
id BIGSERIAL PRIMARY KEY,
type_of_change CHAR(1) not null,
vbms_distribution_destinations_id bigint not null,
uuid varchar NULL,
destination_type varchar NOT NULL,
address_line_1 varchar NOT NULL,
address_line_2 varchar NULL,
Expand Down
1 change: 1 addition & 0 deletions db/scripts/audit/tables/create_vbms_distributions_audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
id BIGSERIAL PRIMARY KEY,
type_of_change CHAR(1) not null,
vbms_distributions_id bigint not null,
uuid varchar NULL,
recipient_type varchar NOT NULL,
name varchar NULL,
first_name varchar NULL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ create table caseflow_audit.vbms_distributions_audit (
id BIGSERIAL PRIMARY KEY,
type_of_change CHAR(1) not null,
vbms_distributions_id bigint not null,
uuid varchar NULL,
recipient_type varchar NOT NULL,
name varchar NULL,
first_name varchar NULL,
Expand Down

0 comments on commit d38eb98

Please sign in to comment.