fix: title_messages schema to fix on conflict insertion
This commit is contained in:
@@ -34,16 +34,10 @@ export const keyValueTable = sqliteTable("key_value", {
|
||||
value: text("value").notNull(),
|
||||
});
|
||||
|
||||
export const titleMessagesTable = sqliteTable(
|
||||
"title_messages",
|
||||
{
|
||||
titleId: integer("title_id").notNull(),
|
||||
messageId: text("message_id").notNull(),
|
||||
},
|
||||
(table) => ({
|
||||
pk: primaryKey({ columns: [table.titleId, table.messageId] }),
|
||||
}),
|
||||
);
|
||||
export const titleMessagesTable = sqliteTable("title_messages", {
|
||||
titleId: integer("title_id").notNull().primaryKey(),
|
||||
messageId: text("message_id").notNull(),
|
||||
});
|
||||
|
||||
export const tables = [
|
||||
watchStatusTable,
|
||||
|
||||
Reference in New Issue
Block a user