You are here

function node_import_update_1 in Node import 5

File

./node_import.install, line 37

Code

function node_import_update_1() {
  $items = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $items[] = update_sql("CREATE TABLE {node_import_mappings} ( " . "type VARCHAR(16) NOT NULL DEFAULT '', " . "csv_headers TEXT NOT NULL, " . "mapping TEXT NOT NULL, " . "KEY type (type) " . ") /*!40100 DEFAULT CHARACTER SET utf8 */;");
      break;
    case 'pgsql':
      $items[] = update_sql("CREATE TABLE {node_import_mappings} ( " . "\"type\" VARCHAR(16) NOT NULL DEFAULT '', " . "csv_headers TEXT NOT NULL, " . "mapping TEXT NOT NULL, " . "KEY \"type\" (\"type\") " . ");");
      break;
  }
  return $items;
}