Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration tool #603

Merged
merged 3 commits into from
Nov 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- master
- migration-tool # remove before merging to master
tags-ignore: [ v.* ]

jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/h2-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- master
- migration-tool # remove before merging to master
tags-ignore: [ v.* ]

jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/mysql-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- master
- migration-tool # remove before merging to master
tags-ignore: [ v.* ]

jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/oracle-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- master
- migration-tool # remove before merging to master
tags-ignore: [ v.* ]

jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/postgres-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- master
- migration-tool # remove before merging to master
tags-ignore: [ v.* ]

jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sqlserver-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- master
- migration-tool # remove before merging to master
tags-ignore: [ v.* ]

jobs:
Expand Down
16 changes: 10 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import com.lightbend.paradox.apidoc.ApidocPlugin.autoImport.apidocRootPackage

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

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

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

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

lazy val docs = project
.enablePlugins(ProjectAutoPlugin, AkkaParadoxPlugin, ParadoxSitePlugin, PreprocessPlugin, PublishRsyncPlugin)
Expand Down
Empty file.

This file was deleted.

21 changes: 0 additions & 21 deletions migration/src/main/resources/logback.xml

This file was deleted.

9 changes: 0 additions & 9 deletions migration/src/main/resources/reference.conf

This file was deleted.

This file was deleted.

This file was deleted.

25 changes: 0 additions & 25 deletions migration/src/test/resources/postgres/init.sql

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package akka.persistence.jdbc.migrator.integration

import akka.persistence.jdbc.migrator.MigratorSpec._
import akka.persistence.jdbc.migrator.JournalMigratorTest

class PostgresJournalMigratorTest extends JournalMigratorTest("postgres-application.conf") with PostgresCleaner

class MySQLJournalMigratorTest extends JournalMigratorTest("mysql-application.conf") with MysqlCleaner

class OracleJournalMigratorTest extends JournalMigratorTest("oracle-application.conf") with OracleCleaner

class SqlServerJournalMigratorTest extends JournalMigratorTest("sqlserver-application.conf") with SqlServerCleaner
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package akka.persistence.jdbc.migrator.integration

import akka.persistence.jdbc.migrator.MigratorSpec._
import akka.persistence.jdbc.migrator.SnapshotMigratorTest

class PostgresSnapshotMigratorTest extends SnapshotMigratorTest("postgres-application.conf") with PostgresCleaner

class MySQLSnapshotMigratorTest extends SnapshotMigratorTest("mysql-application.conf") with MysqlCleaner

class OracleSnapshotMigratorTest extends SnapshotMigratorTest("oracle-application.conf") with OracleCleaner

class SqlServerSnapshotMigratorTest extends SnapshotMigratorTest("sqlserver-application.conf") with SqlServerCleaner
Loading