You are here

function workflow_fields_schema in Workflow Fields 7

Same name and namespace in other branches
  1. 6 workflow_fields.install \workflow_fields_schema()

File

./workflow_fields.install, line 79
Install, update, and uninstall functions for the workflow_fields module.

Code

function workflow_fields_schema() {
  $schema['workflow_fields'] = array(
    'fields' => array(
      'sid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'name' => array(
        'type' => 'varchar',
        'length' => 100,
        'not null' => TRUE,
      ),
      'type' => array(
        'type' => 'varchar',
        'length' => 100,
        'not null' => TRUE,
      ),
      'visible_roles' => array(
        'type' => 'text',
        'not null' => FALSE,
      ),
      'editable_roles' => array(
        'type' => 'text',
        'not null' => FALSE,
      ),
    ),
    'primary key' => array(
      'sid',
      'name',
      'type',
    ),
    'indexes' => array(
      'runtime' => array(
        'sid',
        'type',
      ),
    ),
  );
  return $schema;
}