You are here

function pathauto_persist_update_6000 in Pathauto Persistent State 6

Same name and namespace in other branches
  1. 7 pathauto_persist.install \pathauto_persist_update_6000()

Reduce the entity_type column to 32 characters.

File

./pathauto_persist.install, line 53

Code

function pathauto_persist_update_6000() {
  $ret = array();
  db_drop_primary_key($ret, 'pathauto_persist');
  db_change_field($ret, 'pathauto_persist', 'entity_type', 'entity_type', array(
    'type' => 'varchar',
    'length' => 32,
    'not null' => TRUE,
  ));
  db_add_primary_key($ret, 'pathauto_persist', array(
    'entity_type',
    'entity_id',
  ));
  return $ret;
}