Skip to content

Commit

Permalink
comment delete
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedriad1 committed Feb 25, 2024
1 parent 2538f2b commit 3ae8ab7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/seed/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 3ae8ab7

Please sign in to comment.