Skip to content

Duct module that automatically fill in ragtime migrations configuration based on folder with migrations files

Notifications You must be signed in to change notification settings

mariusz-jachimowicz-83/duct-migrations-auto-cfg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

duct-migrations-auto-cfg

Duct module that automatically fill in ragtime migrations configuration based on folder with migrations files.

It won't work if you have already applied migrations that was specified manually because during migrations load ragtime will assign ids for migrations using default mechanism - your migrations might have different ids already.

CircleCI

Installation

Clojars Project

Usage

To add this module to your configuration, add the :duct-migrations-auto-cfg/module configuration before :duct.module/sql:

{:duct-migrations-auto-cfg/module {}
 :duct.module/sql {:database-url "jdbc:sqlite:"}}

It will fill in migrations from migrations or resources/migrations folder

Or

{:duct.core/project-ns my-project
 :duct-migrations-auto-cfg/module {}
 :duct.module/sql {:database-url "jdbc:sqlite:"}}

It will fill in migrations from my-project/migrations or resources/my-project/migrations folder

Or you can specify custom path

{:duct-migrations-auto-cfg/module {:migrations-path "my_custom_path"}
 :duct.module/sql {:database-url "jdbc:sqlite:"}}

It will fill in migrations from your custom path

License

Copyright © 2018 Mariusz Jachimowicz

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Duct module that automatically fill in ragtime migrations configuration based on folder with migrations files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published