Updated Spring Batch 5.0 Migration Guide (markdown)

Mahmoud Ben Hassine 2023-04-25 22:39:44 +02:00
parent d71b954a27
commit 48e6430b9f

@ -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