function content_lock_schema in Content locking (anti-concurrent editing) 6        
                          
                  
                        Same name and namespace in other branches
- 8.2 content_lock.install \content_lock_schema()
 - 8 content_lock.install \content_lock_schema()
 - 6.2 content_lock.install \content_lock_schema()
 - 7.3 content_lock.install \content_lock_schema()
 - 7 content_lock.install \content_lock_schema()
 - 7.2 content_lock.install \content_lock_schema()
 
 
File
 
   - ./content_lock.install, line 21
 
  
Code
function content_lock_schema() {
  $schema['content_lock'] = array(
    'description' => 'content lock module table.',
    'fields' => array(
      'nid' => array(
        'description' => 'The primary identifier for a node.',
        'type' => 'int',
        'size' => 'normal',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'uid' => array(
        'description' => 'User that holds the lock.',
        'type' => 'int',
        'size' => 'normal',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'timestamp' => array(
        'description' => 'Time the lock occured.',
        'size' => 'normal',
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
    ),
    'indexes' => array(
      'user' => array(
        'uid',
      ),
    ),
    'primary key' => array(
      'nid',
    ),
  );
  return $schema;
}