-
Notifications
You must be signed in to change notification settings - Fork 0
/
sz_test.install
54 lines (51 loc) · 1.23 KB
/
sz_test.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
<?php
/**
* Implements hook_schema().
*/
function sz_test_schema() {
$schema = array();
$schema['sz_test_results'] = array(
'description' => 'Main table for storing individual votes.',
'fields' => array(
'ltid' => array(
'description' => 'primary key.',
'type' => 'serial',
'length' => 11,
'not null' => FALSE,
),
'name' => array(
'description' => 'Voters name.',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
'email' => array(
'description' => 'Voters name.',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
'song' => array(
'description' => 'Song voted for.',
'type' => 'varchar',
'length' => 50,
'not null' => FALSE,
),
'band' => array(
'description' => 'The band voting on.',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
'ip_address' => array(
'description' => 'IP address of the voter.',
'type' => 'varchar',
'length' => 16,
'not null' => FALSE,
),
),
'primary key' => array('ltid'),
);
return $schema;
}
// end