fix: skip system_setting check while copydb (#2490)

Skip system_setting check while copydb
This commit is contained in:
Athurg Gooth 2023-11-08 10:06:27 +08:00 committed by GitHub
parent 9df05fe0fa
commit 2ee426386a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}
}