fix(copilot): idb upgrade

This commit is contained in:
himself65 2023-06-16 11:15:51 +08:00
parent 951f5540a3
commit 9422b93857

View File

@ -55,6 +55,9 @@ export class IndexedDBChatMessageHistory extends ChatMessageHistory {
database.createObjectStore('chat', { database.createObjectStore('chat', {
keyPath: 'id', keyPath: 'id',
}); });
database.createObjectStore('followingUp', {
keyPath: 'id',
});
} else if (oldVersion === 1) { } else if (oldVersion === 1) {
database.createObjectStore('followingUp', { database.createObjectStore('followingUp', {
keyPath: 'id', keyPath: 'id',