chore(db): clean legacy sql assets and standardize migrations

This commit is contained in:
2026-02-15 16:09:16 +08:00
parent 3ed0bf266a
commit 0e819f5c32
33 changed files with 110 additions and 26177 deletions
+18
View File
@@ -0,0 +1,18 @@
# SQL Directory Guide
This project uses Flyway as the single source of truth for schema changes.
## Active SQL
- `src/main/resources/db/migration/*.sql`: production migrations (required)
- `database/init/`: MySQL first-init directory (keep minimal)
## Optional reference SQL
- `database/flowable/`: Flowable engine schema scripts for multiple databases
- `database/upgrade/`: BladeX cross-database upgrade reference scripts
## Cleanup rule
- Do not place full database dumps under `database/` root.
- Keep backups outside repository (off-repo storage or backup system).