feat(server): cmd/migrate up 接入 codes 库自建迁移(ApplyCodesLibMigrations)(#codes-lib)

顺带修 000020 sqlite 索引名冲突:ALTER TABLE RENAME 不会带着重命名索引,
legacy_codes 上遗留的 idx_codes_status 与 codes 库自己迁移里同名索引撞名,
一并改成 idx_legacy_codes_status(up/down 对称)。
This commit is contained in:
wangjia
2026-07-10 13:55:14 +08:00
parent 665749a90b
commit 5a9b5f1d8e
6 changed files with 67 additions and 0 deletions
+1
View File
@@ -17,6 +17,7 @@ require (
github.com/testcontainers/testcontainers-go v0.43.0
github.com/testcontainers/testcontainers-go/modules/mysql v0.43.0
github.com/testcontainers/testcontainers-go/modules/redis v0.43.0
github.com/wangjia/codes v0.0.0-00010101000000-000000000000
golang.org/x/crypto v0.52.0
golang.org/x/term v0.43.0
google.golang.org/grpc v1.81.1