You are here

function views_bulk_operations_update_1 in Views Bulk Operations (VBO) 5

File

./views_bulk_operations.install, line 16

Code

function views_bulk_operations_update_1() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("CREATE TABLE {vbo_settings} (\n      name varchar(48) NOT NULL,\n      value longtext NOT NULL,\n      PRIMARY KEY (name)\n    ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
      $ret[] = update_sql("INSERT INTO {vbo_settings} (name, value) SELECT {variable}.name, {variable}.value FROM {variable} WHERE {variable}.name LIKE 'views_bulk_operations%'");
      $ret[] = update_sql("DELETE FROM {variable} WHERE name LIKE 'views_bulk_operations%'");
      break;
  }
  return $ret;
}