Skip to content

Commit

Permalink
read databricks module version
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamL-RG committed Nov 18, 2024
1 parent 4bb98c1 commit eabb225
Showing 1 changed file with 6 additions and 0 deletions.
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();
}
}

0 comments on commit eabb225

Please sign in to comment.