From ee37fed798891407a915f6cef4e7af4e89dcfeb1 Mon Sep 17 00:00:00 2001 From: Matvey Ryabchikov <35634442+ronanru@users.noreply.github.com> Date: Wed, 25 Oct 2023 02:29:58 +0300 Subject: [PATCH] fix ci error --- cli/src/installers/drizzle.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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");