You are here

function conditional_fields_schema_7000 in Conditional Fields 7.3

Table schema used for initial upgrade to Drupal 7. Do not edit this function.

1 call to conditional_fields_schema_7000()
conditional_fields_update_7000 in ./conditional_fields.install
Upgrade from Drupal 6 to Drupal 7.

File

./conditional_fields.install, line 45
Install, update and uninstall functions for the Conditional Fields module.

Code

function conditional_fields_schema_7000() {
  return array(
    'fields' => array(
      'id' => array(
        'type' => 'serial',
        'not null' => TRUE,
        'description' => 'The primary identifier for a dependency.',
      ),
      'dependee' => array(
        'type' => 'int',
        'not null' => TRUE,
        'description' => 'The id of the dependee field instance.',
      ),
      'dependent' => array(
        'type' => 'int',
        'not null' => TRUE,
        'description' => 'The id of the dependent field instance.',
      ),
      'options' => array(
        'type' => 'blob',
        'size' => 'big',
        'not null' => TRUE,
        'serialize' => TRUE,
        'description' => 'Serialized data containing the options for the dependency.',
      ),
    ),
    'primary key' => array(
      'id',
    ),
  );
}