diff --git a/cli/src/installers/drizzle.ts b/cli/src/installers/drizzle.ts index 443b28a08e..b2aa1c922e 100644 --- a/cli/src/installers/drizzle.ts +++ b/cli/src/installers/drizzle.ts @@ -96,7 +96,9 @@ 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(" bigint,\n", ""); + else schemaContent = schemaContent.replace(" bigint,\n", " int,\n"); schemaContent = schemaContent.replace(" timestamp,\n", ""); schemaContent = schemaContent.replaceAll("varchar", "text"); schemaContent = schemaContent.replaceAll("bigint", "int");