Skip to content

Commit d1ea9d2

Browse files
committed
Improve template
1 parent 3426e7e commit d1ea9d2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>com.github.throyer</groupId>
55
<artifactId>migration-maven-plugin</artifactId>
6-
<version>1.2.5</version>
6+
<version>1.2.6</version>
77
<packaging>maven-plugin</packaging>
88

99
<name>Flyway migration generator</name>

src/main/resources/templates/java-based.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@ package db.migration;
22

33
import static org.jooq.impl.DSL.*;
44
import static org.jooq.impl.SQLDataType.*;
5+
56
import org.flywaydb.core.api.migration.BaseJavaMigration;
67
import org.flywaydb.core.api.migration.Context;
78

89
/**
910
* @see https://www.jooq.org/doc/3.1/manual/sql-building/ddl-statements/
1011
*/
1112
public class V%s__%s extends BaseJavaMigration {
13+
14+
@Override
1215
public void migrate(Context context) throws Exception {
1316
var create = using(context.getConnection());
1417
// create.transaction(configuration -> {

0 commit comments

Comments
 (0)