-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: 调整 liquibase 目录结构,更适合开源类项目适配多种数据库脚本场景
Q: 为什么要采用 SQL 脚本记录变更? A: 的确,利用 XML、YAML 等文件格式来记录变更,可以实现数据库无关性,便于迁移数据库环境。但大多数情况下,一个项目的数据库一经选定便不会再变动,为了未来摸不准的扩展还不如直接定义 SQL 脚本,上手容易,可读性更强,也容易从 Liquibase 中迁移出去。 Q:调整了 DB 目录结构好像不太适合项目真实开发记录变更的场景? A:脚手架毕竟是通用的,为了上手容易,也为了展示方便,必然会做出取舍。在真实开发时可以参考 v2.5.0 版本前的目录结构及实际需要进行调整。
- Loading branch information
Showing
20 changed files
with
375 additions
and
491 deletions.
There are no files selected for viewing
36 changes: 3 additions & 33 deletions
36
continew-admin-webapi/src/main/resources/db/changelog/db.changelog-master.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,7 @@ | ||
databaseChangeLog: | ||
- include: | ||
file: db/changelog/v1.0.0/continew-admin_table.sql | ||
file: db/changelog/mysql/continew-admin_table.sql | ||
- include: | ||
file: db/changelog/v1.0.0/continew-admin_column.sql | ||
file: db/changelog/mysql/continew-admin_column.sql | ||
- include: | ||
file: db/changelog/v1.0.0/continew-admin_data.sql | ||
- include: | ||
file: db/changelog/v1.1.0/continew-admin_table.sql | ||
- include: | ||
file: db/changelog/v1.1.0/continew-admin_column.sql | ||
- include: | ||
file: db/changelog/v1.1.0/continew-admin_data.sql | ||
- include: | ||
file: db/changelog/v1.2.0/continew-admin_table.sql | ||
- include: | ||
file: db/changelog/v1.2.0/continew-admin_column.sql | ||
- include: | ||
file: db/changelog/v1.2.0/continew-admin_data.sql | ||
- include: | ||
file: db/changelog/v1.3.0/continew-admin_table.sql | ||
- include: | ||
file: db/changelog/v1.3.0/continew-admin_column.sql | ||
- include: | ||
file: db/changelog/v1.3.0/continew-admin_data.sql | ||
- include: | ||
file: db/changelog/v2.2.0/continew-admin_table.sql | ||
- include: | ||
file: db/changelog/v2.2.0/continew-admin_column.sql | ||
- include: | ||
file: db/changelog/v2.2.0/continew-admin_data.sql | ||
- include: | ||
file: db/changelog/v2.4.0/continew-admin_table.sql | ||
- include: | ||
file: db/changelog/v2.4.0/continew-admin_column.sql | ||
- include: | ||
file: db/changelog/v2.4.0/continew-admin_data.sql | ||
file: db/changelog/mysql/continew-admin_data.sql |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.