pull/16884/merge
vereis 2026-04-08 05:08:09 +00:00 committed by GitHub
commit a8b95f5983
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -108,7 +108,7 @@ const cli = yargs(args)
args: process.argv.slice(2),
})
const marker = path.join(Global.Path.data, "opencode.db")
const marker = path.join(Global.Path.data, "storage", "json-sqlite-migration.done")
if (!(await Filesystem.exists(marker))) {
const tty = process.stderr.isTTY
process.stderr.write("Performing one time database migration, may take a few minutes..." + EOL)
@ -142,6 +142,7 @@ const cli = yargs(args)
process.stderr.write(`sqlite-migration:done${EOL}`)
}
}
await Filesystem.write(marker, `${Date.now()}\n`)
process.stderr.write("Database migration complete." + EOL)
}
})