You are here

function tvi_update_7000 in Taxonomy Views Integrator 7

Replace xid int field by a varchar field to allow uuid usage.

File

./tvi.install, line 37
Install, update, and uninstall functions for the tvi module.

Code

function tvi_update_7000(&$sandbox) {
  db_drop_primary_key('tvi_settings');
  db_change_field('tvi_settings', 'xid', 'xid', array(
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => '',
    'description' => 'Taxonomy vocabulary or term ID or UUID.',
  ), array(
    'primary key' => array(
      'type',
      'xid',
    ),
  ));
}