Skip to content

Commit

Permalink
Recreate batch tables (#457)
Browse files Browse the repository at this point in the history
* Recreating spring batch tables

* Recreating spring batch tables

* Update V1_9__recreate_spring_batch_tables.sql
  • Loading branch information
SabinaHMCTS authored Feb 5, 2025
1 parent 4f23eed commit 7a1448c
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
-- ensure we have table names available
drop table if exists batch_job_execution;
drop table if exists batch_job_execution_context;
drop table if exists batch_job_execution_params;
drop table if exists batch_job_instance;
drop table if exists batch_step_execution;
drop table if exists batch_step_execution_context;


-- rename existing tables in environments (AAT has had successful job runs)
alter table if exists batch_step_execution_context rename to batch_step_execution_context_archived2;
Expand All @@ -25,3 +19,13 @@ alter table if exists batch_job_execution_context_archived2 rename constraint JO
drop sequence if exists BATCH_STEP_EXECUTION_SEQ;
drop sequence if exists BATCH_JOB_EXECUTION_SEQ;
drop sequence if exists BATCH_JOB_SEQ;


-- ensure we have table names available
drop table if exists batch_job_execution CASCADE;
drop table if exists batch_job_execution_context CASCADE;
drop table if exists batch_job_execution_params CASCADE;
drop table if exists batch_job_instance CASCADE;
drop table if exists batch_step_execution CASCADE;
drop table if exists batch_step_execution_context CASCADE;

0 comments on commit 7a1448c

Please sign in to comment.