subfolder-evolutions


License

License

GroupId

GroupId

com.sandinh
ArtifactId

ArtifactId

subfolder-evolutions_2.11
Last Version

Last Version

2.6.7
Release Date

Release Date

Type

Type

jar
Description

Description

subfolder-evolutions
subfolder-evolutions
Project URL

Project URL

https://github.com/ohze/subfolder-evolutions
Project Organization

Project Organization

com.sandinh
Source Code Management

Source Code Management

https://github.com/ohze/subfolder-evolutions

Download subfolder-evolutions_2.11

How to add to project

<!-- https://jarcasting.com/artifacts/com.sandinh/subfolder-evolutions_2.11/ -->
<dependency>
    <groupId>com.sandinh</groupId>
    <artifactId>subfolder-evolutions_2.11</artifactId>
    <version>2.6.7</version>
</dependency>
// https://jarcasting.com/artifacts/com.sandinh/subfolder-evolutions_2.11/
implementation 'com.sandinh:subfolder-evolutions_2.11:2.6.7'
// https://jarcasting.com/artifacts/com.sandinh/subfolder-evolutions_2.11/
implementation ("com.sandinh:subfolder-evolutions_2.11:2.6.7")
'com.sandinh:subfolder-evolutions_2.11:jar:2.6.7'
<dependency org="com.sandinh" name="subfolder-evolutions_2.11" rev="2.6.7">
  <artifact name="subfolder-evolutions_2.11" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.sandinh', module='subfolder-evolutions_2.11', version='2.6.7')
)
libraryDependencies += "com.sandinh" % "subfolder-evolutions_2.11" % "2.6.7"
[com.sandinh/subfolder-evolutions_2.11 "2.6.7"]

Dependencies

compile (2)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.12
com.typesafe.play : play-jdbc-evolutions_2.11 jar 2.6.7

Project Modules

There are no modules declared in this project.

subfolder-evolutions

Build Status

playframework 2.4+ DB evolutions that can manage sql script from multiple dependency libraries

Usage

  1. Each library should place evolutions scripts in folder evolutions/<db-name>/<subfolder-name> instead of place directly in evolutions/<db-name> as in the plain evolutions.

Example: A library "sd" %% "pay" % "2.0.0" has scripts evolutions/default/pay/{1.sql, 2.sql}

The library should have the following config in reference.conf file: evolutions.default.folders += pay

  1. In the main play application :
  • add sbt libraryDependencies:
  name := "bank"
  libraryDependencies ++= Seq(
    "com.sandinh" %% "subfolder-evolutions" % "2.6.3",
    "sd" %% "pay" % "2.0.0"
  )
  • (similar,) place evolutions scripts in conf/evolutions/default/bank/{1.sql, 2.sql, 3.sql}

  • and add to conf/application.conf:

evolutions.default.folders += bank
play.modules.disabled += "play.api.db.evolutions.EvolutionsModule"
  1. subfolder-evolutions will magically do its job :D

publish checklist

  • should add unit test
  • MUST run sbt clean +test (+test to test against all crossScalaVersions in [[build.sbt]])
  • if you publish from sbtshell in IDEA or from an already running sbt shell then MUST run the following tasks:
reload
clean
+test
  • MUST update [CHANGES.md]!
  • MUST tag the publishing git commit
  • MUST push to github (push tag too)

Changelogs

see CHANGES.md

Licence

This software is licensed under the Apache 2 license: http://www.apache.org/licenses/LICENSE-2.0

Copyright (C) 2011-2017 Sân Đình (http://sandinh.com)

Versions

Version
2.6.7
2.6.6
2.6.3
2.5.2
2.4.6
2.4.3
2.4.2_1
2.4.2