Skip to content

Commit

Permalink
Merge pull request #65 from flyway/read-databricks-module-version
Browse files Browse the repository at this point in the history
Display the Databricks module version in plugin list
  • Loading branch information
WilliamL-RG authored Jan 16, 2025
2 parents 6cd157e + c7eef00 commit cca1ebf
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
9 changes: 8 additions & 1 deletion flyway-community-db-support-archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-community-db-support-archetype</artifactId>
<version>10.16.3</version>
<version>10.16.4</version>
<packaging>maven-archetype</packaging>

<name>Archetype - flyway-community-db-support-archetype</name>
Expand All @@ -31,6 +31,13 @@
</distributionManagement>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-archetype-plugin</artifactId>
<version>3.3.0</version>
</plugin>
</plugins>
<extensions>
<extension>
<groupId>org.apache.maven.archetype</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
artifactId=flyway-database-example
parentVersion=10.12.0
parentVersion=10.16.4
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.flywaydb.community.database.databricks;

import org.flywaydb.community.database.DatabricksDatabaseExtension;
import org.flywaydb.core.api.ResourceProvider;
import org.flywaydb.core.api.configuration.Configuration;
import org.flywaydb.core.internal.database.base.BaseDatabaseType;
Expand Down Expand Up @@ -61,4 +62,9 @@ public Database createDatabase(Configuration configuration, JdbcConnectionFactor
public Parser createParser(Configuration configuration, ResourceProvider resourceProvider, ParsingContext parsingContext) {
return new DatabricksParser(configuration, parsingContext);
}

@Override
public String getPluginVersion(Configuration config) {
return DatabricksDatabaseExtension.readVersion();
}
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>10.18.1</version>
<version>11.1.1</version>
<relativePath/>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down

0 comments on commit cca1ebf

Please sign in to comment.