Skip to content

Commit c56753d

Browse files
octonatogabriele83Tochemey
authored
Migration tool (#603)
Co-authored-by: Gabriele Favaretto <gabfav@gmail.com> Co-authored-by: Renato Cavalcanti <renato@cavalcanti.be> Co-authored-by: Arsene Tochemey GANDOTE <tochemey@hotmail.com>
1 parent 8cb9192 commit c56753d

49 files changed

Lines changed: 1631 additions & 207 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/checks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- master
8+
- migration-tool # remove before merging to master
89
tags-ignore: [ v.* ]
910

1011
jobs:

.github/workflows/h2-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- master
8+
- migration-tool # remove before merging to master
89
tags-ignore: [ v.* ]
910

1011
jobs:

.github/workflows/mysql-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- master
8+
- migration-tool # remove before merging to master
89
tags-ignore: [ v.* ]
910

1011
jobs:

.github/workflows/oracle-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- master
8+
- migration-tool # remove before merging to master
89
tags-ignore: [ v.* ]
910

1011
jobs:

.github/workflows/postgres-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- master
8+
- migration-tool # remove before merging to master
89
tags-ignore: [ v.* ]
910

1011
jobs:

.github/workflows/sqlserver-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
push:
66
branches:
77
- master
8+
- migration-tool # remove before merging to master
89
tags-ignore: [ v.* ]
910

1011
jobs:

build.sbt

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import com.lightbend.paradox.apidoc.ApidocPlugin.autoImport.apidocRootPackage
22

33
// FIXME remove switching to final Akka version
4-
resolvers in ThisBuild += "Akka Snapshots".at("https://oss.sonatype.org/content/repositories/snapshots/")
4+
ThisBuild / resolvers += "Akka Snapshots".at("https://oss.sonatype.org/content/repositories/snapshots/")
55

66
lazy val `akka-persistence-jdbc` = project
77
.in(file("."))
88
.enablePlugins(ScalaUnidocPlugin)
99
.disablePlugins(MimaPlugin, SitePlugin)
10-
.aggregate(core, migration, docs)
10+
.aggregate(core, docs, migrator)
1111
.settings(publish / skip := true)
1212

1313
lazy val core = project
@@ -24,13 +24,17 @@ lazy val core = project
2424
organization.value %% name.value % previousStableVersion.value.getOrElse(
2525
throw new Error("Unable to determine previous version for MiMa"))))
2626

27-
lazy val migration = project
28-
.in(file("migration"))
27+
lazy val migrator = project
28+
.in(file("migrator"))
2929
.disablePlugins(SitePlugin, MimaPlugin)
30+
.configs(IntegrationTest.extend(Test))
31+
.settings(Defaults.itSettings)
3032
.settings(
31-
name := "akka-persistence-jdbc-migration",
32-
libraryDependencies ++= Dependencies.Migration,
33+
name := "akka-persistence-jdbc-migrator",
34+
libraryDependencies ++= Dependencies.Migration ++ Dependencies.Libraries,
35+
// TODO remove this when ready to publish it
3336
publish / skip := true)
37+
.dependsOn(core % "compile->compile;test->test")
3438

3539
lazy val docs = project
3640
.enablePlugins(ProjectAutoPlugin, AkkaParadoxPlugin, ParadoxSitePlugin, PreprocessPlugin, PublishRsyncPlugin)

migration/src/main/resources/db/migration/postgres/V001__test.sql

Whitespace-only changes.

migration/src/main/resources/db/migration/postgres/V002__test-2.sql

Lines changed: 0 additions & 9 deletions
This file was deleted.

migration/src/main/resources/logback.xml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)