You are here

function heartbeat_install_table_user_templates in Heartbeat 7

Same name and namespace in other branches
  1. 8 heartbeat.install \heartbeat_install_table_user_templates()
2 calls to heartbeat_install_table_user_templates()
heartbeat_schema in ./heartbeat.install
Implementation of hook_schema().
heartbeat_update_7014 in ./heartbeat.install
Add database table for the heartbeat user templates.

File

./heartbeat.install, line 237
Installation file for the heartbeat module. @author Jochen Stals - Menhir - www.menhir.be

Code

function heartbeat_install_table_user_templates() {
  return array(
    'description' => t('Table that connects translations of the same activity.'),
    'fields' => array(
      'uid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'description' => t('The referenced user ID.'),
      ),
      'message_id' => array(
        'type' => 'varchar',
        'length' => 250,
        'not null' => FALSE,
        'default' => '',
        'description' => t('The template message ID.'),
      ),
      'status' => array(
        'type' => 'int',
        'not null' => TRUE,
        'description' => t('The status of the template.'),
      ),
    ),
  );
}