Skip to content

Commit

Permalink
Merge pull request #2140 from slingamn/issue2139
Browse files Browse the repository at this point in the history
fix #2139
  • Loading branch information
slingamn authored Mar 29, 2024
2 parents d56e4ea + 0c804f8 commit 1f4b524
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion irc/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion irctest

0 comments on commit 1f4b524

Please sign in to comment.