springboot整合h2 数据库迁移 org.flywaydb.core.api.FlywayException解决方案

[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- flyway-maven-plugin:6.0.8:migrate (default-cli) @ nice-community ---
[INFO] Flyway Community Edition 6.0.8 by Redgate
[INFO] Database: jdbc:h2:~/nice-community (H2 1.4)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.897 s
[INFO] Finished at: 2019-11-13T12:47:08+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.flywaydb:flyway-maven-plugin:6.0.8:migrate (default-cli) on project nice-community: org.flywaydb.core.api.FlywayException: Version may only contain 0..9 and
. (dot). Invalid version: 1.Create.user.table -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
 

 

删掉h2的db文件即可 

你可能感兴趣的:(springboot,h2)