mirror of
https://github.com/usememos/memos.git
synced 2024-12-29 16:42:11 +08:00
fix: skip system_setting check while copydb (#2490)
Skip system_setting check while copydb
This commit is contained in:
parent
9df05fe0fa
commit
2ee426386a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue