diff --git a/liquibase-dialect/CHANGELOG.md b/liquibase-dialect/CHANGELOG.md index d02d0a8..aa89a35 100644 --- a/liquibase-dialect/CHANGELOG.md +++ b/liquibase-dialect/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.1.1 ## + +* Read changesets from QueryService + ## 1.1.0 ## * Supported UUID type in .xml, .yaml, and .json formats diff --git a/liquibase-dialect/pom.xml b/liquibase-dialect/pom.xml index 77b154a..72b15f8 100644 --- a/liquibase-dialect/pom.xml +++ b/liquibase-dialect/pom.xml @@ -6,7 +6,7 @@ tech.ydb.dialects liquibase-ydb-dialect - 1.1.0 + 1.1.1 Liquibase YDB Dialect Support Liquibase YDB Dialect @@ -43,7 +43,7 @@ 1.8 4.24.0 - 2.3.3 + 2.3.6 diff --git a/liquibase-dialect/src/main/java/tech/ydb/liquibase/sqlgenerator/SelectFromDatabaseChangeLogGeneratorYdb.java b/liquibase-dialect/src/main/java/tech/ydb/liquibase/sqlgenerator/SelectFromDatabaseChangeLogGeneratorYdb.java deleted file mode 100644 index bfeb6de..0000000 --- a/liquibase-dialect/src/main/java/tech/ydb/liquibase/sqlgenerator/SelectFromDatabaseChangeLogGeneratorYdb.java +++ /dev/null @@ -1,36 +0,0 @@ -package tech.ydb.liquibase.sqlgenerator; - -import liquibase.database.Database; -import liquibase.sql.Sql; -import liquibase.sql.UnparsedSql; -import liquibase.sqlgenerator.SqlGeneratorChain; -import liquibase.sqlgenerator.core.SelectFromDatabaseChangeLogGenerator; -import liquibase.statement.core.SelectFromDatabaseChangeLogStatement; -import tech.ydb.liquibase.database.YdbDatabase; - -/** - * @author Kirill Kurdyukov - */ -public class SelectFromDatabaseChangeLogGeneratorYdb extends SelectFromDatabaseChangeLogGenerator { - - @Override - public int getPriority() { - return PRIORITY_DATABASE; - } - - @Override - public boolean supports(SelectFromDatabaseChangeLogStatement statement, Database database) { - return database instanceof YdbDatabase; - } - - @Override - public Sql[] generateSql( - SelectFromDatabaseChangeLogStatement statement, - Database database, - SqlGeneratorChain sqlGeneratorChain - ) { - Sql[] sql = super.generateSql(statement, database, sqlGeneratorChain); - - return new Sql[] {new UnparsedSql("SCAN " + sql[0].toSql())}; - } -} diff --git a/liquibase-dialect/src/main/resources/META-INF/services/liquibase.sqlgenerator.SqlGenerator b/liquibase-dialect/src/main/resources/META-INF/services/liquibase.sqlgenerator.SqlGenerator index d5b15c1..ffde0ac 100644 --- a/liquibase-dialect/src/main/resources/META-INF/services/liquibase.sqlgenerator.SqlGenerator +++ b/liquibase-dialect/src/main/resources/META-INF/services/liquibase.sqlgenerator.SqlGenerator @@ -14,5 +14,4 @@ tech.ydb.liquibase.sqlgenerator.DropPrimaryKeyGeneratorSql tech.ydb.liquibase.sqlgenerator.GetViewDefinitionGeneratorYdb tech.ydb.liquibase.sqlgenerator.InsertOrUpdateGeneratorYdb tech.ydb.liquibase.sqlgenerator.RenameColumnGeneratorYdb -tech.ydb.liquibase.sqlgenerator.RenameTableGeneratorYdb -tech.ydb.liquibase.sqlgenerator.SelectFromDatabaseChangeLogGeneratorYdb \ No newline at end of file +tech.ydb.liquibase.sqlgenerator.RenameTableGeneratorYdb \ No newline at end of file diff --git a/liquibase-dialect/stress-test/run.sh b/liquibase-dialect/stress-test/run.sh index 82de411..dff253e 100644 --- a/liquibase-dialect/stress-test/run.sh +++ b/liquibase-dialect/stress-test/run.sh @@ -1,4 +1,4 @@ -YDB_JDBC_DRIVER_VERSION=2.3.3 +YDB_JDBC_DRIVER_VERSION=2.3.6 echo Stress test using ydb-jdbc-driver-shaded:"$YDB_JDBC_DRIVER_VERSION"