From 48e6430b9f17c9453bca6ca3d2f78a9803dd6682 Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Tue, 25 Apr 2023 22:39:44 +0200 Subject: [PATCH] Updated Spring Batch 5.0 Migration Guide (markdown) --- Spring-Batch-5.0-Migration-Guide.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Spring-Batch-5.0-Migration-Guide.md b/Spring-Batch-5.0-Migration-Guide.md index f5df533..3d6c253 100644 --- a/Spring-Batch-5.0-Migration-Guide.md +++ b/Spring-Batch-5.0-Migration-Guide.md @@ -88,6 +88,20 @@ CREATE TABLE BATCH_JOB_EXECUTION_PARAMS ( This is related to the way job parameters are persisted as revisited in https://github.com/spring-projects/spring-batch/issues/3960. Migration scripts can be found in `org/springframework/batch/core/migration/5.0`. +##### Column change in `BATCH_STEP_EXECUTION` + +A new column `CREATE_TIME` was added in v5. You should create it in the table according to your database server, something like: + +```sql +ALTER TABLE BATCH_STEP_EXECUTION ADD CREATE_TIME TIMESTAMP NOT NULL DEFAULT '1970-01-01 00:00:00'; +``` + +Moreover, the `NOT NULL` constraint was dropped from the `START_TIME` column: + +```sql +ALTER TABLE BATCH_STEP_EXECUTION ALTER COLUMN START_TIME DROP NOT NULL; +``` + ## Infrastructure beans configuration with `@EnableBatchProcessing` ### Job repository/explorer configuration updates