diff --git a/server/src/index.ts b/server/src/index.ts index d47d6674..d4f41c6e 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -94,8 +94,8 @@ export async function startServer(): Promise { } async function promptApplyMigrations(migrations: string[]): Promise { - if (process.env.PAPERCLIP_MIGRATION_PROMPT === "never") return false; if (process.env.PAPERCLIP_MIGRATION_AUTO_APPLY === "true") return true; + if (process.env.PAPERCLIP_MIGRATION_PROMPT === "never") return false; if (!stdin.isTTY || !stdout.isTTY) return true; const prompt = createInterface({ input: stdin, output: stdout });