File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ import { WebCommand } from "./cli/cmd/web"
2929import { PrCommand } from "./cli/cmd/pr"
3030import { SessionCommand } from "./cli/cmd/session"
3131import { DbCommand } from "./cli/cmd/db"
32- import path from "path"
33- import { Global } from "./global"
3432import { JsonMigration } from "./storage/json-migration"
3533import { Database } from "./storage/db"
3634import { errorMessage } from "./util/error"
@@ -108,8 +106,8 @@ const cli = yargs(args)
108106 args : process . argv . slice ( 2 ) ,
109107 } )
110108
111- const marker = path . join ( Global . Path . data , "opencode.db" )
112- if ( ! ( await Filesystem . exists ( marker ) ) ) {
109+ // Use the database path as the marker to trigger migration if missing
110+ if ( ! ( await Filesystem . exists ( Database . Path ) ) ) {
113111 const tty = process . stderr . isTTY
114112 process . stderr . write ( "Performing one time database migration, may take a few minutes..." + EOL )
115113 const width = 36
You can’t perform that action at this time.
0 commit comments