Skip to content

Missing DDL migration script related to BATCH_STEP_EXECUTION table in v5 migration guide #4332

Closed
@florianhof

Description

@florianhof

Bug description
Documentation is incomplete: Spring Batch 5.0 Migration Guide
§Database schema updates > All platforms
It misses the migration step of renaming a column (or what I did for backward compatibility, add a new column). The doc should states something like:

Column change in BATCH_STEP_EXECUTION

The column START_TIME was renamed in CREATE_TIME. Rename it according to your database server, something like:
ALTER TABLE BATCH_STEP_EXECUTION RENAME COLUMN START_TIME TO CREATE_TIME;

Environment
Spring Batch 5.0.1, Java 17, database Postgres 14, Spring Boot 3.0.4.
Please provide as many details as possible: Spring Batch version, Java version, which database you use if any, etc

Steps to reproduce
see https://github.com/spring-projects/spring-batch/wiki/Spring-Batch-5.0-Migration-Guide#all-platforms

Expected behavior
Running a batch should works after migrating an existing batch to latest Spring Batch.

Minimal Complete Reproducible example

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions