mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: skip system_setting check while copydb (#2490)
Skip system_setting check while copydb
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user