Revision 972696a2
Added by Andreas Kohlbecker about 14 years ago
modules/cdm_dataportal/cdm_api/cdm_api.info | ||
---|---|---|
1 | 1 |
; $Id$ |
2 | 2 |
name = "CDM API" |
3 | 3 |
description = "CDM Web Service API" |
4 |
version = 5.x-0.2
|
|
4 |
version = 5.x-1.0
|
|
5 | 5 |
package = "CDM" |
modules/cdm_dataportal/cdm_api/cdm_api.install | ||
---|---|---|
15 | 15 |
PRIMARY KEY (cid), |
16 | 16 |
INDEX expire (expire) |
17 | 17 |
) /*!40100 DEFAULT CHARACTER SET UTF8 */ "); |
18 |
|
|
19 |
db_query(" |
|
18 |
|
|
19 |
db_query(_get_sql_create_nodecdm()); |
|
20 |
db_query(_get_sql_fix_watchdog()); |
|
21 |
} |
|
22 |
|
|
23 |
/** |
|
24 |
* Implementation of hook_uninstall(). |
|
25 |
*/ |
|
26 |
function cdm_api_uninstall(){ |
|
27 |
db_query("DROP TABLE {cache_cdm_ws};"); |
|
28 |
//TODO delete all cdm nodes using node_delete() |
|
29 |
db_query("DROP TABLE {node_cdm};"); |
|
30 |
|
|
31 |
} |
|
32 |
|
|
33 |
/** |
|
34 |
* Implementation of hook_api_update_N(). |
|
35 |
* |
|
36 |
* Update 1 for version 5.x-1.0 |
|
37 |
*/ |
|
38 |
function cdm_api_update_5101() { |
|
39 |
$items = array(); |
|
40 |
$items[] = update_sql(_get_sql_create_nodecdm()); |
|
41 |
$items[] = update_sql(_get_sql_fix_watchdog()); |
|
42 |
return $items; |
|
43 |
} |
|
44 |
|
|
45 |
// ------------------------- SQL Scripts ------------------------ // |
|
46 |
|
|
47 |
function _get_sql_create_nodecdm() { |
|
48 |
return " |
|
20 | 49 |
CREATE TABLE {node_cdm} ( |
21 | 50 |
`nid` int(11) NOT NULL, |
22 | 51 |
`wsuri` varchar(255) default NULL, |
... | ... | |
24 | 53 |
`uuid` varchar(255) default NULL, |
25 | 54 |
PRIMARY KEY (`uuid`) |
26 | 55 |
) /*!40100 DEFAULT CHARACTER SET UTF8 */ |
27 |
"); |
|
28 |
|
|
56 |
"; |
|
29 | 57 |
} |
30 | 58 |
|
31 |
/** |
|
32 |
* Implementation of hook_uninstall(). |
|
33 |
*/ |
|
34 |
function cdm_api_uninstall(){ |
|
35 |
db_query("DROP TABLE {cache_cdm_ws};"); |
|
36 |
} |
|
37 |
?> |
|
59 |
function _get_sql_fix_watchdog() { |
|
60 |
return "ALTER TABLE {watchdog} CHANGE referer referer TEXT NOT NULL ;"; |
|
61 |
} |
modules/cdm_dataportal/cdm_dataportal.info | ||
---|---|---|
1 | 1 |
; $Id$ |
2 | 2 |
name = "CDM Dataportal" |
3 | 3 |
description = "The dataportal publishes CDM data hosted in a CommunityStore on the web." |
4 |
version = 5.x-0.1
|
|
4 |
version = 5.x-1.0
|
|
5 | 5 |
package = "CDM" |
6 | 6 |
dependencies = cdm_api cdm_taxontree jquery_update |
modules/cdm_dataportal/cdm_mediauri/cdm_mediauri.info | ||
---|---|---|
1 | 1 |
; $Id$ |
2 | 2 |
name = "CDM Media-URI Conversion" |
3 | 3 |
description = "Allows to create conversion rules for media uris" |
4 |
version = 5.x-0.1
|
|
4 |
version = 5.x-0.5
|
|
5 | 5 |
package = "CDM" |
6 | 6 |
; dependencies = |
modules/cdm_dataportal/cdm_taxontree/cdm_taxontree.info | ||
---|---|---|
1 | 1 |
; $Id$ |
2 | 2 |
name = "CDM Taxon Tree" |
3 | 3 |
description = "A Taxon Tree Browser for the CDM" |
4 |
version = 5.x-0.1
|
|
4 |
version = 5.x-1.0
|
|
5 | 5 |
package = "CDM" |
6 | 6 |
dependencies = jquery_update taxonomy |
modules/cdm_dataportal/ext_links/ext_links.info | ||
---|---|---|
1 | 1 |
; $Id: ext_links.info,v 1.2.4.1.4.2 2008/09/26 11:58:24 niif Exp a.kroupa $ |
2 | 2 |
name = "CDM External taxa links" |
3 | 3 |
description = A block module for listing external links to taxa information. |
4 |
version = "5.x-3.2"
|
|
4 |
version = "5.x-1.0"
|
|
5 | 5 |
package = "CDM" |
6 | 6 |
dependencies = cdm_dataportal |
Also available in: Unified diff
updating module infos & improved uninstall update for cdm_api