Skip to content

Database is not creating  #46

@sheikhbarkat

Description

@sheikhbarkat

This code is not working on angular 1.5v, no debug mode ?, no error log ?

$indexedDBProvider.connection('localDatabasex');.upgradeDatabase(1, function (event, db, tx) {
   console.log(db);
   //Create Objects -- CityMaster
   var objStore = db.createObjectStore('citymaster', { keyPath: 'ssn' });
   objStore.createIndex('cityid', 'int', { unique: false });
   objStore.createIndex('cityname', 'cityname', { unique: false });
   objStore.createIndex('statename', 'statename', { unique: false });
   objStore.createIndex('customcity', 'customcity', { unique: false });
   objStore.createIndex('Whenupdate', 'Whenupdate', { unique: false });
   objStore.createIndex('recentcity', 'recentcity', { unique: false });

});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions