Unverified Commit 2ee42638 authored by Athurg Gooth's avatar Athurg Gooth Committed by GitHub

fix: skip system_setting check while copydb (#2490)

Skip system_setting check while copydb
parent 9df05fe0
...@@ -98,7 +98,7 @@ func copydb(fromProfile, toProfile *_profile.Profile) error { ...@@ -98,7 +98,7 @@ func copydb(fromProfile, toProfile *_profile.Profile) error {
if err != nil { if err != nil {
return errors.Wrapf(err, "fail to check '%s'", table) 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) return errors.Errorf("table '%s' is not empty", table)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment