Pārlūkot izejas kodu

Merge pull request #2140 from slingamn/issue2139

fix #2139
pull/2143/head
Shivaram Lingamneni 2 mēnešus atpakaļ
vecāks
revīzija
1f4b5248a0
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1
    1
      irc/database.go
  2. 1
    1
      irctest

+ 1
- 1
irc/database.go Parādīt failu

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

+ 1
- 1
irctest

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

Notiek ielāde…
Atcelt
Saglabāt