far*_*ahm 3 flyway spring-boot
我有带有 Flyway 的 Spring Boot 应用程序。
我有以下 sql 脚本:
src/main/resources/db/migration/V1__init.sql
但脚本没有执行。
在application.properties文件中我有:
spring.datasource.url = jdbc:mysql://localhost:3306/carorderprocess?useSSL=false
spring.datasource.username = root
spring.datasource.password = ...
spring.flyway.baselineOnMigrate = true
Run Code Online (Sandbox Code Playgroud)
当我运行应用程序时,在数据库中我只看到:
mysql> select * from flyway_schema_history;
+----------------+---------+-----------------------+----------+-----------------------+----------+--------------+---------------------+----------------+---------+
| installed_rank | version | description | type | script | checksum | installed_by | installed_on | execution_time | success |
+----------------+---------+-----------------------+----------+-----------------------+----------+--------------+---------------------+----------------+---------+
| 1 | 1 | << Flyway Baseline >> | BASELINE | << Flyway Baseline >> | NULL | root | 2019-11-19 10:47:52 | 0 | 1 |
+----------------+---------+-----------------------+----------+-----------------------+----------+--------------+---------------------+----------------+---------+
Run Code Online (Sandbox Code Playgroud)
所以脚本没有执行,为什么?
| 归档时间: |
|
| 查看次数: |
3019 次 |
| 最近记录: |