title: Failed to execute 'createObjectStore' on 'IDBDatabase'
body: <p>why do I have a error ?</p>
  
  <p>My code:</p>
  
  <pre><code>var idb = window.indexedDB ||      // Use the standard DB API
            window.mozIndexedDB ||   // Or Firefox's early version of it
            window.webkitIndexedDB;  // Or Chrome's early version
  
  var IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction;
  var IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange;
  
  var dbName='nameDb';
  
  var idbRequest=idb.open(dbName,'4.67' /*,dbDescription  */);
  
  idbRequest.onsuccess=function (e) {
      debugger
  
      var db=e.target.result; 
  
      if (!db.objectStoreNames.contains('chat')){
          co=db.createObjectStore('chat',{'id':100});
      };
  
      if (!db.objectStoreNames.contains('iam')){
          co1=db.createObjectStore('iam');
      }; 
  };
  
  idbRequest.onerror = function (e) {
      debugger
  };
  </code></pre>
  
  <blockquote>
    <p>Uncaught InvalidStateError: Failed to execute 'createObjectStore' on 'IDBDatabase': The database is not running a version change transaction. index.html:37
    idbRequest.onsuccess</p>
  </blockquote>