我正在将Flyway与Docker和oracle一起使用,以创建具有db对象的新模式。我执行了飞路迁移并将其基线化。之后,即使我运行Flyway清理或删除了数据库,也清理了数据量。然后重新创建空的oracle数据库并调用flyway迁移我得到如下消息 “模式“ GLDDBAMST”的当前版本:null 架构“ GLDDBAMST”是最新的。无需迁移。 架构版本:空”
请让我知道如何删除基准并在清除架构后再次开始迁移。
------------------------Full Message---------------
US_C02XJ1EWJGH5:goldnet-flyway rmehta068$ make config-flyway-migrate
docker-compose -f compose/flyway.yml up config_flyway
WARNING: Found orphan containers (oracle) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
Starting flyway_config ... done
Attaching to flyway_config
flyway_config | Flyway Community Edition 5.2.4 by Boxfuse
flyway_config | Database: jdbc:oracle:thin:@oracle:1521/ORCLPDB1.localdomain (Oracle 12.2)
flyway_config | Successfully dropped schema "GLDDBAMST" (execution time 00:00.160s)
flyway_config | Creating schema "GLDDBAMST" ...
flyway_config | Creating Schema History table: "GLDDBAMST"."flyway_schema_history"
flyway_config | Current version of schema "GLDDBAMST": null
flyway_config | Schema "GLDDBAMST" is up to date. No migration necessary.
flyway_config | Schema version: null
flyway_config |
flyway_config | +----------+---------+------------------------------+--------+---------------------+---------+
flyway_config | | Category | Version | Description | Type | Installed On | State |
flyway_config | +----------+---------+------------------------------+--------+---------------------+---------+
flyway_config | | | | << Flyway Schema Creation >> | SCHEMA | 2019-02-04 20:31:01 | Success |
flyway_config | +----------+---------+------------------------------+--------+---------------------+---------+
flyway_config |
flyway_config exited with code 0
Collapse
Message Input