Closed
Description
Bug description
The migration script for sqlserver provided in spring-batch-core for version 5.0 is incorrect.
Environment
Spring Batch version: 5.0.1, Java version = 17.0.6_10, database=SQLServer 2019
Steps to reproduce
All bugs relate to the table BATCH_JOB_EXECUTION_PARAMS in migration-sqlserver.sql script under 5.0:
- You cannot drop column DATE_VAL without first dropping the default constraint on it.
- You cannot use MODIFY COLUMN to rename columns (TYPE_CD, KEY_NAME, STRING_VAL). You would need to use the sp_rename procedure as described here