发生了带有sqlite错误的Flyway数据库迁移

时间:2014-11-30 07:09:48

标签: sqlite flyway

当我在我的java网络应用程序中使用flyway db进行迁移时,我收到了以下错误。

我的代码是:

Flyway flyway = new Flyway();
flyway.setDataSource(dataSource);
flyway.migrate();

有人知道为什么吗?感谢。

java.sql.SQLException: not implemented by SQLite JDBC driver
at org.sqlite.Unused.unused(Unused.java:29) ~[sqlite-jdbc-3.7.2.jar:na]
at org.sqlite.Unused.setEscapeProcessing(Unused.java:36) ~[sqlite-jdbc-3.7.2.jar:na]
at com.mchange.v2.c3p0.impl.NewProxyStatement.setEscapeProcessing(NewProxyStatement.java:272) ~[c3p0-0.9.1.2.jar:0.9.1.2]
at org.flywaydb.core.internal.dbsupport.JdbcTemplate.executeStatement(JdbcTemplate.java:235) [flyway-core-3.1.jar:na]
at org.flywaydb.core.internal.dbsupport.SqlScript.execute(SqlScript.java:114) [flyway-core-3.1.jar:na]
at org.flywaydb.core.internal.metadatatable.MetaDataTableImpl.createIfNotExists(MetaDataTableImpl.java:93) [flyway-core-3.1.jar:na]
at org.flywaydb.core.internal.metadatatable.MetaDataTableImpl.lock(MetaDataTableImpl.java:100) [flyway-core-3.1.jar:na]
at org.flywaydb.core.internal.command.DbMigrate$2.doInTransaction(DbMigrate.java:158) [flyway-core-3.1.jar:na]
at org.flywaydb.core.internal.command.DbMigrate$2.doInTransaction(DbMigrate.java:156) [flyway-core-3.1.jar:na]

at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72) [flyway-core-3.1.jar:na]
at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:156) [flyway-core-3.1.jar:na]
at org.flywaydb.core.Flyway$1.execute(Flyway.java:972) [flyway-core-3.1.jar:na]
at org.flywaydb.core.Flyway$1.execute(Flyway.java:919) [flyway-core-3.1.jar:na]
at org.flywaydb.core.Flyway.execute(Flyway.java:1320) [flyway-core-3.1.jar:na]
at org.flywaydb.core.Flyway.migrate(Flyway.java:919) [flyway-core-3.1.jar:na]

0 个答案:

没有答案