{"action":"created","issue":{"url":"https://api.github.com/repos/webcss/angular-indexedDB/issues/46","repository_url":"https://api.github.com/repos/webcss/angular-indexedDB","labels_url":"https://api.github.com/repos/webcss/angular-indexedDB/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/webcss/angular-indexedDB/issues/46/comments","events_url":"https://api.github.com/repos/webcss/angular-indexedDB/issues/46/events","html_url":"https://github.com/webcss/angular-indexedDB/issues/46","id":148263100,"number":46,"title":"Database is not creating ","user":{"login":"sheikhbarkat","id":3489946,"avatar_url":"https://avatars.githubusercontent.com/u/3489946?v=3","gravatar_id":"","url":"https://api.github.com/users/sheikhbarkat","html_url":"https://github.com/sheikhbarkat","followers_url":"https://api.github.com/users/sheikhbarkat/followers","following_url":"https://api.github.com/users/sheikhbarkat/following{/other_user}","gists_url":"https://api.github.com/users/sheikhbarkat/gists{/gist_id}","starred_url":"https://api.github.com/users/sheikhbarkat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheikhbarkat/subscriptions","organizations_url":"https://api.github.com/users/sheikhbarkat/orgs","repos_url":"https://api.github.com/users/sheikhbarkat/repos","events_url":"https://api.github.com/users/sheikhbarkat/events{/privacy}","received_events_url":"https://api.github.com/users/sheikhbarkat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-14T06:23:48Z","updated_at":"2016-04-17T13:10:26Z","closed_at":null,"body":"This code is not working on angular 1.5v,  no debug mode ?, no error log ? \r\n\r\n\r\n    $indexedDBProvider.connection('localDatabasex');.upgradeDatabase(1, function (event, db, tx) {\r\n       console.log(db);\r\n       //Create Objects -- CityMaster\r\n       var objStore = db.createObjectStore('citymaster', { keyPath: 'ssn' });\r\n       objStore.createIndex('cityid', 'int', { unique: false });\r\n       objStore.createIndex('cityname', 'cityname', { unique: false });\r\n       objStore.createIndex('statename', 'statename', { unique: false });\r\n       objStore.createIndex('customcity', 'customcity', { unique: false });\r\n       objStore.createIndex('Whenupdate', 'Whenupdate', { unique: false });\r\n       objStore.createIndex('recentcity', 'recentcity', { unique: false });\r\n   });\r\n"},"comment":{"url":"https://api.github.com/repos/webcss/angular-indexedDB/issues/comments/211014487","html_url":"https://github.com/webcss/angular-indexedDB/issues/46#issuecomment-211014487","issue_url":"https://api.github.com/repos/webcss/angular-indexedDB/issues/46","id":211014487,"user":{"login":"sheikhbarkat","id":3489946,"avatar_url":"https://avatars.githubusercontent.com/u/3489946?v=3","gravatar_id":"","url":"https://api.github.com/users/sheikhbarkat","html_url":"https://github.com/sheikhbarkat","followers_url":"https://api.github.com/users/sheikhbarkat/followers","following_url":"https://api.github.com/users/sheikhbarkat/following{/other_user}","gists_url":"https://api.github.com/users/sheikhbarkat/gists{/gist_id}","starred_url":"https://api.github.com/users/sheikhbarkat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheikhbarkat/subscriptions","organizations_url":"https://api.github.com/users/sheikhbarkat/orgs","repos_url":"https://api.github.com/users/sheikhbarkat/repos","events_url":"https://api.github.com/users/sheikhbarkat/events{/privacy}","received_events_url":"https://api.github.com/users/sheikhbarkat/received_events","type":"User","site_admin":false},"created_at":"2016-04-17T13:10:26Z","updated_at":"2016-04-17T13:10:26Z","body":"Hey\n\nThanks for reply.\n\nYou have given those steps, i done exactly  but database is not created., i\ntried many times it won't work. may be Angular version issue i'm using v 1.5\n\nThen i created database using normal java script code.\n\n\nThanks\n\n\n\n\n  *Regards ,*\n\n\nOn Sun, Apr 17, 2016 at 5:43 PM, Cosmos Pham <notifications@github.com>\nwrote:\n\n> Oh, @sheikhbarkat <https://github.com/sheikhbarkat> , I see that when the\n> dababase has any action such as call objectStore(), it will check the\n> version and do upgrade.\n> upgradeDatabase() just pass a callback function for using when upgrading,\n> itself not do upgrade.\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/webcss/angular-indexedDB/issues/46#issuecomment-211007997>\n>\n"}}