fix: remove index contraints

This commit is contained in:
Henry
2023-11-14 21:09:15 +00:00
parent 9660a60276
commit 6b9b968a31

View File

@@ -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 }) => ({