【发布时间】:2020-02-17 11:41:21
【问题描述】:
我正在尝试在 Liquibase 中运行一堆 sql 脚本。但是,默认情况下,liquibase 会按照它们在目录中的顺序执行所有脚本。有什么方法可以改变这些脚本的执行默认执行,即首先通过创建表脚本执行,然后是所有插入脚本。
我的主变更日志文件:
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">
<includeAll path="../migration/" relativeToChangelogFile="true"/>
</databaseChangeLog>
我将所有 sql 脚本放在迁移文件夹中。
【问题讨论】:
标签: database oracle migration liquibase