You are here

function fillpdf_update_7006 in FillPDF 7

Same name and namespace in other branches
  1. 7.2 fillpdf.install \fillpdf_update_7006()

Add database fields for prefix and suffix.

File

./fillpdf.install, line 259
Install.

Code

function fillpdf_update_7006() {
  $schema = drupal_get_schema_unprocessed('fillpdf', 'fillpdf_fields');
  if (!db_field_exists('fillpdf_fields', 'prefix')) {
    db_add_field('fillpdf_fields', 'prefix', $schema['fields']['prefix']);
  }
  if (!db_field_exists('fillpdf_fields', 'suffix')) {
    db_add_field('fillpdf_fields', 'suffix', $schema['fields']['suffix']);
  }
}