You are here

function fieldable_panels_panes_update_7101 in Fieldable Panels Panes (FPP) 7

Add UUID support.

File

./fieldable_panels_panes.install, line 252
Fieldable Panels Panes install file.

Code

function fieldable_panels_panes_update_7101(&$sandbox) {

  // Make sure to add UUID field.
  if (!db_field_exists('fieldable_panels_panes', 'uuid')) {
    db_add_field('fieldable_panels_panes', 'uuid', array(
      'type' => 'char',
      'length' => 36,
      'default' => '',
      'description' => 'The Universally Unique Identifier.',
    ));
  }

  // Make sure to add VUUID field.
  if (!db_field_exists('fieldable_panels_panes_revision', 'vuuid')) {
    db_add_field('fieldable_panels_panes_revision', 'vuuid', array(
      'type' => 'char',
      'length' => 36,
      'default' => '',
      'description' => 'The Universally Unique Identifier.',
    ));
  }
}