Merge pull request #2140 from slingamn/issue2139

fix #2139
This commit is contained in:
Shivaram Lingamneni 2024-03-29 22:50:22 +01:00 committed by GitHub
commit 1f4b5248a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ func retrieveSchemaVersion(tx *buntdb.Tx) (version int, err error) {
func performAutoUpgrade(currentVersion int, config *Config) (err error) {
path := config.Datastore.Path
log.Printf("attempting to auto-upgrade schema from version %d to %d\n", currentVersion, latestDbSchema)
timestamp := time.Now().UTC().Format("2006-01-02-15:04:05.000Z")
timestamp := time.Now().UTC().Format("2006-01-02-15.04.05.000Z")
backupPath := fmt.Sprintf("%s.v%d.%s.bak", path, currentVersion, timestamp)
log.Printf("making a backup of current database at %s\n", backupPath)
err = utils.CopyFile(path, backupPath)

@ -1 +1 @@
Subproject commit ee6c56d84bdd3467795f97f1da2d697ad4999fbd
Subproject commit 0c5c91368a584ea734f91884c031f3893c368e1d