Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: skip system_setting check while copydb (#2490)

Athurg Gooth2ee426386aec
diff --git a/cmd/copydb.go b/cmd/copydb.go
index 6f7727b9d..0c857228e 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)
}
}