Skip to content

Commit

Permalink
#813 | Update batch_job_execution_params.parameter_type values to res…
Browse files Browse the repository at this point in the history
…olve conversion issues
  • Loading branch information
himeshr committed Dec 18, 2024
1 parent 43458b6 commit 5dbd03d
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
DO
$$
BEGIN
IF EXISTS
(SELECT 1
FROM information_schema.tables
WHERE table_schema = 'public'
AND table_name = 'batch_job_execution_params'
)
THEN
UPDATE batch_job_execution_params bjep
set parameter_type = 'java.util.Date'
where parameter_type = 'DATE';
UPDATE batch_job_execution_params bjep
set parameter_type = 'java.lang.Long'
where parameter_type = 'LONG';
UPDATE batch_job_execution_params bjep
set parameter_type = 'java.lang.Double'
where parameter_type = 'DOUBLE';
UPDATE batch_job_execution_params bjep
set parameter_type = 'java.lang.String'
where parameter_type = 'STRING';
END IF;
END
$$;

0 comments on commit 5dbd03d

Please sign in to comment.