You are here

function fillpdf_update_7107 in FillPDF 7

Add field to store default entity type. Also change default_nid to varchar.

File

./fillpdf.install, line 392
Install.

Code

function fillpdf_update_7107() {
  if (!db_field_exists('fillpdf_forms', 'default_entity_type')) {
    db_add_field('fillpdf_forms', 'default_entity_type', array(
      'type' => 'varchar',
      'length' => 255,
    ));
  }

  // Change default_nid into a varchar to support entities with string IDs.
  db_change_field('fillpdf_forms', 'default_nid', 'default_nid', array(
    'type' => 'varchar',
    'length' => 255,
  ));
}