完善商品发布位置与 Docker 运行环境

This commit is contained in:
Christ committed 2026-08-13 09:12:22 +08:00
1 parent 9adc77df73
commit 7ec0b4a078
21 files changed
+431 -176

No files matched your search

+5 -1
View File
@@ -128,7 +128,7 @@ func TestLatestMigrationsDownUpSQLite(t *testing.T) {
}
goose.SetBaseFS(migrationsFS)
// 依次回滚最新版本到 13,再整体升级。
for i := 0; i < 13; i++ {
for i := 0; i < 14; i++ {
if err := goose.Down(d, "migrations/sqlite"); err != nil {
t.Fatalf("down migration #%d: %v", i+1, err)
}
@@ -151,6 +151,9 @@ func TestLatestMigrationsDownUpSQLite(t *testing.T) {
if columnExists(t, d, "item_info", "deleted_at") || columnExists(t, d, "automation_rules", "deleted_at") {
t.Fatal("soft-delete columns should be removed after migration 26 down")
}
if columnExists(t, d, "item_publish_batches", "location_json") {
t.Fatal("item_publish_batches.location_json should be removed after migration 27 down")
}
for _, table := range []string{"account_task_settings", "account_task_runs", "chat_sessions", "chat_messages"} {
if tableExists(t, d, table) {
t.Fatalf("table should be removed after migration 24 down: %s", table)
@@ -174,6 +177,7 @@ func TestLatestMigrationsDownUpSQLite(t *testing.T) {
{"default_reply_records", "text_sent"},
{"account_tokens", "cookie_fingerprint"},
{"item_publish_batch_rows", "category_json"},
{"item_publish_batches", "location_json"},
{"account_task_settings", "auto_rate_enabled"},
{"account_task_runs", "run_key"},
{"chat_sessions", "unread_count"},