2
// $Id: xmlsitemap_term.install,v 1.5.2.12 2008/12/27 14:30:56 kiam Exp $
2
// $Id: xmlsitemap_term.install,v 1.5.2.14 2009/02/01 13:56:53 kiam Exp $
4
4
/*****************************************************************************
52
52
function xmlsitemap_term_update_6000() {
54
$schema = xmlsitemap_term_schema();
55
54
if (db_table_exists('xmlsitemap_term')) {
56
55
if (db_column_exists('xmlsitemap_term', 'pid')) {
62
61
db_drop_field($ret, 'xmlsitemap_term', 'pid');
63
if (db_column_exists('xmlsitemap_term', 'last_changed')) {
64
db_change_field($ret, 'xmlsitemap_term', 'last_changed', 'changed',
66
'description' => 'The Unix timestamp of the last change.',
71
if (!db_column_exists('xmlsitemap_term', 'changed')) {
72
db_add_field($ret, 'xmlsitemap_term', 'changed',
74
'description' => 'The Unix timestamp of the last change.',
64
79
$ret[] = update_sql("UPDATE {xmlsitemap_term}
65
80
SET priority_override = -2.0
66
81
WHERE priority_override IS NULL"
68
83
db_change_field($ret, 'xmlsitemap_term', 'priority_override', 'priority_override',
69
$schema['xmlsitemap_term']['fields']['priority_override']
85
'description' => 'The priority of the term in the site map.',
73
db_create_table($ret, 'xmlsitemap_term', $schema['xmlsitemap_term']);
93
db_create_table($ret, 'xmlsitemap_term',
95
'description' => 'The base table for xmlsitemap_term.',
98
'description' => 'The ID of the path.',
103
'description' => 'The Unix timestamp of the last change.',
106
'previously_changed' => array(
107
'description' => 'The Unix timestamp of the previous change.',
110
'priority_override' => array(
111
'description' => 'The priority of the term in the site map.',
117
'primary key' => array('tid'),
75
121
$ret[] = update_sql("UPDATE {system} SET weight = 7 WHERE name = 'xmlsitemap_term'");
94
140
* Implementation of hook_update_N().
96
142
function xmlsitemap_term_update_6102() {
147
* Implementation of hook_update_N().
149
function xmlsitemap_term_update_6103() {
154
* Implementation of hook_update_N().
156
function xmlsitemap_term_update_6104() {
97
157
return xmlsitemap_term_update_6000();