You are here

function devel_update_3 in Devel 6

Same name and namespace in other branches
  1. 5 devel.install \devel_update_3()

File

./devel.install, line 129
Install file for devel module.

Code

function devel_update_3() {
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
    case 'mysql':
      $sql = "CREATE TABLE {devel_queries} (\n        qid int(10) NOT NULL auto_increment,\n        query varchar(255) NOT NULL default '',\n        hash varchar(255) NOT NULL default '',\n        PRIMARY KEY (`hash`),\n        KEY qid (qid)\n        ) /*!40100 DEFAULT CHARACTER SET utf8 */;";
      $ret[] = update_sql($sql);
      $sql = "CREATE TABLE {devel_times} (\n        tid int(10) NOT NULL auto_increment,\n        qid int(10) NOT NULL default 0,\n        time float default NULL,\n        PRIMARY KEY (tid),\n        KEY qid (qid)\n      ) /*!40100 DEFAULT CHARACTER SET utf8 */;";
      $ret[] = update_sql($sql);
      return $ret;
  }
}