You are here

function flexiform_webform_update_7001 in Flexiform 7

Add form group column.

File

flexiform_webform/flexiform_webform.install, line 127
Sets up the base table for our entity and a table to store information about the entity types.

Code

function flexiform_webform_update_7001() {
  $spec = array(
    'description' => 'The group that this flexiform webform belongs to.',
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => 'general',
  );
  $keys = array(
    'indexes' => array(
      'form_group' => array(
        'form_group',
      ),
    ),
  );
  db_add_field('flexiform_webform', 'form_group', $spec, $keys);
}