Skip to content

Commit

Permalink
fix ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
ronanru committed Oct 24, 2023
1 parent b462fbe commit ee37fed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/src/installers/drizzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit ee37fed

Please sign in to comment.