Skip to content

Commit

Permalink
change type to mediumtext
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedriad1 committed Feb 25, 2024
1 parent 3ae8ab7 commit c54b1b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/db/schema/version.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { text, varchar } from "drizzle-orm/mysql-core";
import { text, varchar, mediumtext } from "drizzle-orm/mysql-core";
import { createTable } from "./utils";
import { book } from ".";
import { relations } from "drizzle-orm";

export const version = createTable("version", {
id: varchar("id", { length: 500 }).primaryKey(),
bookId: text("author_id").notNull(),
content: text("content").notNull(),
content: mediumtext("content").notNull(),
});

export const versionRelations = relations(version, ({ one }) => ({
Expand Down

0 comments on commit c54b1b1

Please sign in to comment.