Skip to content

AlbericMartel/spring-batch-migration-4-to-5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repository aims at exposing a bug of postgresql migration between spring batch 4.3.7 and 5.0.0.

On my project, I faced this bug as I needed to use liquibase to populate my DB, only the liquibase user being able to alter the schema.

Here where my changesets:

  • Loaded with spring-batch 4.3.7:
<changeSet id="create_spring_batch_tables" author="amartel" dbms="postgresql">
  <sqlFile path="classpath:/org/springframework/batch/core/schema-postgresql.sql"
    relativeToChangelogFile="false"
    splitStatements="true"
    stripComments="true"
  />
</changeSet> 
  • Update with spring-batch 5.0.0:
<changeSet id="update_spring_batch_tables" author="amartel" dbms="postgresql">
  <sqlFile path="classpath:/org/springframework/batch/core/migration/5.0/migration-postgresql.sql"
    relativeToChangelogFile="false"
    splitStatements="true"
    stripComments="true"
  />
</changeSet>

In the current repository, the PostgreSQLMigration4_5IntegrationTests presents 2 tests:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages