You are here

function system_update_1000 in Drupal 5

Related topics

File

modules/system/system.install, line 3078

Code

function system_update_1000() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("CREATE TABLE {blocks_roles} (\n      module varchar(64) NOT NULL,\n      delta varchar(32) NOT NULL,\n      rid int unsigned NOT NULL,\n      PRIMARY KEY (module, delta, rid)\n      ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
      break;
    case 'pgsql':
      $ret[] = update_sql("CREATE TABLE {blocks_roles} (\n      module varchar(64) NOT NULL,\n      delta varchar(32) NOT NULL,\n      rid integer NOT NULL,\n      PRIMARY KEY (module, delta, rid)\n      );");
      break;
  }
  return $ret;
}