mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
🐛 主键改了这边忘改了
This commit is contained in:
@@ -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');
|
||||||
`;
|
`;
|
||||||
|
|||||||
Reference in New Issue
Block a user