Skip to content

A gradle plugin that automatically renames .sql files to have a V{timestamp}__ prefix

License

Notifications You must be signed in to change notification settings

tecklund/FlywayRename

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlywayRenamePlugin

Description

This plugin renames all the files in the blob src/main/resources/db/migration/**.sql that do not start with V.+__ to be pre-pended with V{timestamp}__

This is extremely useful when using flyway - no longer are you forced to version your files by hand!

Usage

plugins {
    id "org.blinkmob.flywayrename" version "1.0.0"
}

gradle flywayRename

For extra convenience add flywayMigrate.dependsOn flywayRename to your build script. Happy migrating!

About

A gradle plugin that automatically renames .sql files to have a V{timestamp}__ prefix

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages