You are here

function state_flow_schedule_schema in State Machine 7.3

Same name and namespace in other branches
  1. 7.2 modules/state_flow_schedule/state_flow_schedule.install \state_flow_schedule_schema()

Implements hook_schema().

2 calls to state_flow_schedule_schema()
state_flow_schedule_update_7000 in modules/state_flow_schedule/state_flow_schedule.install
Make the table schema entity type agnostic.
state_flow_schedule_update_7001 in modules/state_flow_schedule/state_flow_schedule.install
Update the state_flow_schedule table to allow scheduling custom events.

File

modules/state_flow_schedule/state_flow_schedule.install, line 11
Install file for state_flow_schedule.

Code

function state_flow_schedule_schema() {
  $schema = array();
  $schema['state_flow_schedule'] = array(
    'description' => '',
    'fields' => array(
      'sid' => array(
        'description' => 'The id of the scheduled data row.',
        'type' => 'serial',
        'not null' => TRUE,
      ),
      'entity_type' => array(
        'description' => 'The type of entity to be published.',
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
      ),
      'entity_id' => array(
        'description' => 'The id of the entity to be published.',
        'type' => 'int',
        'not null' => TRUE,
      ),
      'revision_id' => array(
        'description' => 'The revision id of the entity.',
        'type' => 'int',
        'not null' => TRUE,
      ),
      'date' => array(
        'description' => 'The date value.',
        'type' => 'int',
        'not null' => TRUE,
      ),
      'source_event' => array(
        'description' => 'The name of the event that scheduled the call.',
        'type' => 'varchar',
        'not null' => FALSE,
        'length' => 255,
      ),
      'target_event' => array(
        'description' => 'The name of the event to call.',
        'type' => 'varchar',
        'not null' => FALSE,
        'length' => 255,
      ),
    ),
    'primary key' => array(
      'sid',
    ),
  );
  return $schema;
}