-
Notifications
You must be signed in to change notification settings - Fork 0
/
drumun.install
executable file
·78 lines (75 loc) · 1.96 KB
/
drumun.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
function drumun_install() {
drupal_install_schema('drumun');
}
function drumun_schema() {
$schema['drumun_information'] = array(
'description' => 'Holds info about each user related to the conference',
'fields' => array(
'uid' => array(
'description' => 'User ID of whom we\'re storing',
'type' => 'int',
'not null' => TRUE,
'default' => 0
),
'fname' => array(
'description' => 'First name.',
'type' => 'varchar',
'length' => '50',
'not null' => TRUE,
'default' => ' '
),
'lname' => array(
'description' => 'Last name.',
'type' => 'varchar',
'length' => '50',
'not null' => TRUE,
'default' => ' '
),
'nickname' => array(
'type' => 'varchar',
'length' => '50',
'not null' => TRUE,
'default' => ' '
),
'committee' => array(
'description' => 'Short version of committee being stored.',
'type' => 'varchar',
'length' => '10',
'not null' => TRUE,
'default' => 'NONE'
),
'delegation' => array(
'description' => 'Short version of delegation being stored.',
'type' => 'varchar',
'length' => '50',
'not null' => TRUE,
'default' => 'NONE'
),
),
'primary key' => array('uid'),
);
$schema['drumun_realname'] = array(
'description' => 'Holds info about each user\'s realname',
'fields' => array(
'uid' => array(
'description' => 'User ID of whom we\'re storing',
'type' => 'int',
'not null' => TRUE,
'default' => 0
),
'value' => array(
'description' => 'Realname.',
'type' => 'varchar',
'length' => '200',
'not null' => TRUE,
'default' => ' '
),
),
'primary key' => array('uid'),
);
return $schema;
}
function drumun_uninstall() {
drupal_uninstall_schema('drumun');
}