-
Notifications
You must be signed in to change notification settings - Fork 0
/
iof_tickets.install
55 lines (50 loc) · 1.26 KB
/
iof_tickets.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
<?php
// $Id$
/**
* @file
*/
function iof_tickets_schema() {
return array(
'uc_order_iof_tickets' => array(
'description' => 'IO-Festival related order information',
'fields' => array(
'order_id' => array(
'description' => 'Primary key: the order ID.',
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'delivery_method' => array(
'description' => 'Method for order handling',
'type' => 'varchar',
'length' => 24,
'default' => NULL,
),
'customer_cardnumber' => array(
'description' => 'Card number for order',
'type' => 'int',
'size' => 'big',
'not null' => FALSE,
'default' => NULL,
),
),
'primary key' => array('order_id'),
),
// </uc_order_iof_tickets>
);
}
/**
* Implementation of hook_install()
*/
function iof_tickets_install() {
drupal_install_schema('iof_tickets');
}
/**
* Implementation of hook_uninstall()
*/
function iof_tickets_uninstall() {
drupal_uninstall_schema('iof_tickets');
variable_del('iof_tickets_default_ticket_nid');
variable_del('iof_tickets_intro_ticket_nid');
variable_del('iof_tickets_tokens_nid');
}