1
|
<?php
|
2
|
// $Id$
|
3
|
|
4
|
/**
|
5
|
* Implementation of hook_install().
|
6
|
*/
|
7
|
function cdm_api_install(){
|
8
|
|
9
|
db_query("CREATE TABLE {cache_cdm_ws} (
|
10
|
cid varchar(333) NOT NULL default '', -- max key length is 999 byte = varchar(333)
|
11
|
data longblob,
|
12
|
expire int NOT NULL default '0',
|
13
|
created int NOT NULL default '0',
|
14
|
headers text,
|
15
|
PRIMARY KEY (cid),
|
16
|
INDEX expire (expire)
|
17
|
) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
|
18
|
|
19
|
}
|
20
|
|
21
|
/**
|
22
|
* Implementation of hook_uninstall().
|
23
|
*/
|
24
|
function cdm_api_uninstall(){
|
25
|
db_query("DROP TABLE {cache_cdm_ws};");
|
26
|
}
|
27
|
?>
|