From 6b9b968a31bc83852a55de3f1e0aa1fd78773ca2 Mon Sep 17 00:00:00 2001 From: Henry Date: Tue, 14 Nov 2023 21:09:15 +0000 Subject: [PATCH] fix: remove index contraints --- src/server/db/schema.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/server/db/schema.ts b/src/server/db/schema.ts index 3e949432..09cbac6b 100644 --- a/src/server/db/schema.ts +++ b/src/server/db/schema.ts @@ -55,9 +55,7 @@ export const lists = mySqlTable( updatedAt: timestamp("updatedAt").onUpdateNow(), boardId: bigint("boardId", { mode: "number" }).notNull(), index: int("index").notNull() - }, (t) => ({ - unq: unique().on(t.boardId, t.index), - }) + } ); export const listsRelations = relations(lists, ({ one, many }) => ({ @@ -86,9 +84,7 @@ export const cards = mySqlTable( updatedAt: timestamp("updatedAt").onUpdateNow(), listId: bigint("listId", { mode: "number" }).notNull(), index: int("index").notNull() - }, (t) => ({ - unq: unique().on(t.listId, t.index), - }) + } ); export const cardsRelations = relations(cards, ({ one }) => ({