mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
refactor: rename db
This commit is contained in:
@@ -118,7 +118,7 @@ const cli = yargs(hideBin(process.argv))
|
||||
|
||||
Telemetry.trackCliStart()
|
||||
// kilocode_change end
|
||||
const marker = path.join(Global.Path.data, "opencode.db")
|
||||
const marker = path.join(Global.Path.data, "kilo.db")
|
||||
if (!(await Bun.file(marker).exists())) {
|
||||
console.log("Performing one time database migration, may take a few minutes...")
|
||||
const tty = process.stdout.isTTY
|
||||
|
||||
@@ -65,9 +65,9 @@ export namespace Database {
|
||||
}
|
||||
|
||||
export const Client = lazy(() => {
|
||||
log.info("opening database", { path: path.join(Global.Path.data, "opencode.db") })
|
||||
log.info("opening database", { path: path.join(Global.Path.data, "kilo.db") })
|
||||
|
||||
const sqlite = new BunDatabase(path.join(Global.Path.data, "opencode.db"), { create: true })
|
||||
const sqlite = new BunDatabase(path.join(Global.Path.data, "kilo.db"), { create: true })
|
||||
|
||||
sqlite.run("PRAGMA journal_mode = WAL")
|
||||
sqlite.run("PRAGMA synchronous = NORMAL")
|
||||
|
||||
Reference in New Issue
Block a user