generated from civitaspo/digdag-plugin-scala-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from civitaspo/fix-migration-error
Set baselineOnMigrate=true
- Loading branch information
Showing
6 changed files
with
167 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
.../scala/pro/civitaspo/digdag/plugin/pg_lock/pg/migration/V0_0_0__Baseline_do_nothing.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package pro.civitaspo.digdag.plugin.pg_lock.pg.migration | ||
|
||
|
||
import org.flywaydb.core.api.migration.{BaseJavaMigration, Context} | ||
|
||
import scala.util.Using | ||
|
||
|
||
class V0_0_0__Baseline_do_nothing | ||
extends BaseJavaMigration | ||
{ | ||
override def migrate(context: Context): Unit = | ||
{ | ||
Using(context.getConnection.prepareStatement("SELECT 1")) { stmt => | ||
stmt.execute() | ||
} | ||
|
||
} | ||
} |
4 changes: 3 additions & 1 deletion
4
.../civitaspo/digdag/plugin/pg_lock/pg/migration/V0_0_1_1__CreateTable_digdag_pg_locks.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ag/plugin/pg_lock/pg/migration/V0_0_1_2__CreateIndex_digdag_pg_locks_idx_expires_on.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ag/plugin/pg_lock/pg/migration/V0_0_1_3__CreateIndex_digdag_pg_locks_idx_named_lock.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters