You are here

function certificate_update_7004 in Certificate 7.3

Same name and namespace in other branches
  1. 8.3 certificate.install \certificate_update_7004()

Change mapping field into a varchar for machine name mapping.

File

./certificate.install, line 594
Install the Certificate module.

Code

function certificate_update_7004() {
  db_change_field('certificate_node', 'template', 'template', array(
    'type' => 'varchar',
    'not null' => TRUE,
    'default' => '',
    'length' => 256,
    'description' => 'The certificate to deliver on a match.',
  ));
  db_change_field('certificate_snapshots', 'cid', 'cid', array(
    'type' => 'varchar',
    'not null' => TRUE,
    'default' => '',
    'length' => 256,
    'description' => 'Template name used for generation.',
  ));
}