You are here

function pathauto_persist_update_6000 in Pathauto Persistent State 7

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

Reduce the entity_type column to 32 characters.

File

./pathauto_persist.install, line 39

Code

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