🐛 主键改了这边忘改了

This commit is contained in:
BTMuli
2023-05-31 20:11:42 +08:00
parent 51058c6825
commit 12257bda66

View File

@@ -95,9 +95,8 @@ export function insertNameCardData (data: TGApp.App.NameCard.Item): string {
return ` return `
INSERT INTO NameCard (name, "desc", type, source, updated) INSERT INTO NameCard (name, "desc", type, source, updated)
VALUES ('${data.name}', '${data.desc}', '${data.type}', '${data.source}', datetime('now', 'localtime')) VALUES ('${data.name}', '${data.desc}', '${data.type}', '${data.source}', datetime('now', 'localtime'))
ON CONFLICT(name) DO UPDATE ON CONFLICT(name, type) DO UPDATE
SET "desc" = '${data.desc}', SET "desc" = '${data.desc}',
type = '${data.type}',
source = '${data.source}', source = '${data.source}',
updated = datetime('now', 'localtime'); updated = datetime('now', 'localtime');
`; `;