-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
Hi, i have some problem when i am creating new store in existing indexed db. it is not created after i have deleted the existing db in the browser . its working how to solve that .
my code is:
createStore(name: string): Promise {
const self = this;
if (!!this.db.dbWrapper.validateStoreName(name)) {
alert('yes already exists');
return;
}
return this.db.openDatabase(self.db.dbWrapper.db.version + 1, (evt) => {
const objectStore = evt.currentTarget.result.createObjectStore(
name, {keyPath: 'id', autoIncrement: true});
objectStore.createIndex('name', 'name', {unique: false});
objectStore.createIndex('email', 'email', {unique: false});
});
}
thiagoalmedeiros
Metadata
Metadata
Assignees
Labels
No labels