From 3ae8ab763428fd301f478ccb5fad0a720987ec94 Mon Sep 17 00:00:00 2001 From: ahmedriad1 Date: Sun, 25 Feb 2024 19:50:48 +0200 Subject: [PATCH] comment delete --- scripts/seed/version.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/seed/version.ts b/scripts/seed/version.ts index 41091b6d..d92833a6 100644 --- a/scripts/seed/version.ts +++ b/scripts/seed/version.ts @@ -2,15 +2,15 @@ import { db } from "@/server/db"; import { getBooksData, getParsedBookVersions } from "../fetchers"; import { version } from "@/server/db/schema"; import { chunk } from "../utils"; -import { sql } from "drizzle-orm"; +// import { sql } from "drizzle-orm"; const CHUNK_SIZE = 5; const allBooks = await getBooksData(); // DROP ALL DATA in the version table -await db.execute(sql`DELETE * FROM version`); -console.log("[VERSIONS] Deleted all data from the version table"); +// await db.execute(sql`DELETE * FROM version`); +// console.log("[VERSIONS] Deleted all data from the version table"); let versionBatchIdx = 0; let versionsToSync: {