Skip to content

Incorrect v5 migration script for SQLServer #4349

Closed
@iyerha

Description

@iyerha

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:

  1. You cannot drop column DATE_VAL without first dropping the default constraint on it.
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions