diff --git a/cli/src/installers/drizzle.ts b/cli/src/installers/drizzle.ts index 443b28a08e..a94e9a71ef 100644 --- a/cli/src/installers/drizzle.ts +++ b/cli/src/installers/drizzle.ts @@ -95,8 +95,10 @@ export const drizzleInstaller: Installer = ({ ); schemaContent = schemaContent.replaceAll(".onUpdateNow()", ""); if (dbType === "sqlite") { - schemaContent = schemaContent.replace(" varchar,\n", ""); - schemaContent = schemaContent.replace(" bigint,\n", ""); + if (packages?.nextAuth.inUse) { + schemaContent = schemaContent.replace(" varchar,\n", ""); + schemaContent = schemaContent.replace(" bigint,\n", ""); + } schemaContent = schemaContent.replace(" timestamp,\n", ""); schemaContent = schemaContent.replaceAll("varchar", "text"); schemaContent = schemaContent.replaceAll("bigint", "int");