From 801fd9f31fbac3256369da7f6b441583e4c91975 Mon Sep 17 00:00:00 2001 From: Brock Anderson Date: Thu, 7 Nov 2024 11:26:09 -0800 Subject: [PATCH] update data type of two columns in report_history --- backend/db/migrations/V1.0.42__report_column_type_changes.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/db/migrations/V1.0.42__report_column_type_changes.sql b/backend/db/migrations/V1.0.42__report_column_type_changes.sql index d2234c31b..106487485 100644 --- a/backend/db/migrations/V1.0.42__report_column_type_changes.sql +++ b/backend/db/migrations/V1.0.42__report_column_type_changes.sql @@ -11,6 +11,10 @@ drop view reports_view; alter table pay_transparency_report alter column user_comment TYPE text; alter table pay_transparency_report alter column data_constraints TYPE text; +--also alter the corresponding colunms in the history table +alter table report_history alter column user_comment TYPE text; +alter table report_history alter column data_constraints TYPE text; + -- update the comments on the altered columns to note that HTML content is -- expected comment on column pay_transparency_report.user_comment is 'User optionally fills this text area on the form, called ''Employer statement'', which is shown at the top of the report. This is for additional information about the employer. Value should be HTML.';