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 c4565f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cli/src/installers/drizzle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit c4565f9

Please sign in to comment.