-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsshkey.install
50 lines (45 loc) · 1.15 KB
/
sshkey.install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
function sshkey_install() {
drupal_install_schema('sshkey');
}
function sshkey_uninstall() {
drupal_uninstall_schema('sshkey');
}
function sshkey_schema() {
$schema = array();
$schema['sshkey'] = array(
'description' => 'Stores ssh keys for users',
'fields' => array(
'fingerprint' => array(
'description' => 'The md5 hash for the public key',
'type' => 'char',
'length' => 32,
'not null' => TRUE,
),
'name' => array(
'description' => 'The name of the key file.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => ''
),
'created' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'description' => 'The time that the key was created, as a Unix timestamp.',
),
'uid' => array(
'description' => 'The account associated with the public key.',
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
),
'primary key' => array('fingerprint'),
'indexes' => array(
'uid' => array('uid'),
),
);
return $schema;
}