You are here

function ds_update_6202 in Display Suite 6.3

Same name and namespace in other branches
  1. 6.2 ds.install \ds_update_6202()

File

./ds.install, line 212
Display suite install file.

Code

function ds_update_6202() {
  $ret = array();
  db_drop_index($ret, 'ds_settings', 'type');
  db_change_field($ret, 'ds_settings', 'type', 'type', array(
    'description' => 'The name of the type',
    'type' => 'varchar',
    'length' => 64,
    'not null' => TRUE,
    'default' => '',
  ));
  db_add_index($ret, 'ds_settings', 'type', array(
    'type',
  ));
  db_drop_index($ret, 'ds_settings', 'build_mode');
  db_change_field($ret, 'ds_settings', 'build_mode', 'build_mode', array(
    'description' => 'The name of the build mode',
    'type' => 'varchar',
    'length' => 64,
    'not null' => TRUE,
    'default' => '',
  ));
  db_add_index($ret, 'ds_settings', 'build_mode', array(
    'build_mode',
  ));
  return $ret;
}