You are here

function panelizer_update_7110 in Panelizer 7.3

Changing the size of the entity_type field of panelizer_entity.

File

./panelizer.install, line 610
Install, update and uninstall functions for the panelizer module.

Code

function panelizer_update_7110() {
  db_drop_primary_key('panelizer_entity');
  $spec = array(
    'description' => 'The type of the entity this panel is attached to.',
    'type' => 'varchar',
    'length' => 128,
    'not null' => TRUE,
  );
  $keys = array(
    'primary key' => array(
      'entity_type',
      'entity_id',
      'revision_id',
      'view_mode',
    ),
  );
  db_change_field('panelizer_entity', 'entity_type', 'entity_type', $spec, $keys);
}