【发布时间】:2019-03-05 11:26:23
【问题描述】:
我无法在我的项目上运行迁移。目录结构如下:
.
├── flyway.conf
└── sql
└── V1__create_initial_tables.sql
运行flyway migrate 返回:
Database: jdbc:mysql://localhost:3306/<db-name> (MySQL 5.7)
WARNING: You are connected to a MySQL database using the MariaDB driver. This is known to cause issues. An upgrade to Oracle's MySQL JDBC driver is highly recommended.
Successfully validated 0 migrations (execution time 00:00.006s)
Current version of schema `<db-name>`: << Empty Schema >>
Schema `<db-name>` is up to date. No migration necessary.
运行flyway info 返回:
Schema version: << Empty Schema >>
+----------+---------+-------------+------+--------------+-------+
| Category | Version | Description | Type | Installed On | State |
+----------+---------+-------------+------+--------------+-------+
| No migrations found |
+----------+---------+-------------+------+--------------+-------+
我是不是做错了什么?
【问题讨论】: