function content_lock_schema in Content locking (anti-concurrent editing) 7
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()
- 6 content_lock.install \content_lock_schema()
- 7.3 content_lock.install \content_lock_schema()
- 7.2 content_lock.install \content_lock_schema()
File
- ./
content_lock.install, line 30
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,
),
'ajax_key' => array(
'description' => 'A key which AJAX requests must prevent to prevent page reloads from breaking.',
'size' => 'normal',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'indexes' => array(
'user' => array(
'uid',
),
),
'primary key' => array(
'nid',
),
);
return $schema;
}