From 2ee426386aece8c8fbc706b0bb71e7be23a9ecc1 Mon Sep 17 00:00:00 2001 From: Athurg Gooth Date: Wed, 8 Nov 2023 10:06:27 +0800 Subject: [PATCH] fix: skip system_setting check while copydb (#2490) Skip system_setting check while copydb --- cmd/copydb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/copydb.go b/cmd/copydb.go index 6f7727b9..0c857228 100644 --- a/cmd/copydb.go +++ b/cmd/copydb.go @@ -98,7 +98,7 @@ func copydb(fromProfile, toProfile *_profile.Profile) error { if err != nil { return errors.Wrapf(err, "fail to check '%s'", table) } - if cnt > 0 { + if cnt > 0 && table != "system_setting" { return errors.Errorf("table '%s' is not empty", table) } }