Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
xmlsitemap
Commits
d9e2608b
Commit
d9e2608b
authored
Mar 28, 2010
by
Dave Reid
Browse files
by Dave Reid: Updated for db_column_exists() renamed to db_field_exists().
parent
6e50221d
Changes
1
Hide whitespace changes
Inline
Side-by-side
xmlsitemap.install
View file @
d9e2608b
...
...
@@ -385,7 +385,7 @@ function xmlsitemap_update_5() {
}
function
xmlsitemap_update_6
()
{
if
(
db_
column
_exists
(
'xmlsitemap'
,
'language'
))
{
if
(
db_
field
_exists
(
'xmlsitemap'
,
'language'
))
{
db_drop_index
(
'xmlsitemap'
,
'language'
);
db_drop_field
(
'xmlsitemap'
,
'language'
);
}
...
...
@@ -486,7 +486,7 @@ function xmlsitemap_update_14() {
db_add_field
(
'xmlsitemap'
,
'subtype'
,
array
(
'type'
=>
'varchar'
,
'length'
=>
32
,
'default'
=>
NULL
));
$fields
=
array
(
'node'
=>
'node_type'
,
'menu'
=>
'menu_name'
,
'taxonomy'
=>
'term_vid'
);
foreach
(
$fields
as
$type
=>
$field
)
{
if
(
db_
column
_exists
(
'xmlsitemap'
,
$field
))
{
if
(
db_
field
_exists
(
'xmlsitemap'
,
$field
))
{
db_update
(
'xmlsitemap'
)
->
fields
(
array
(
'subtype'
,
$field
))
->
condition
(
'type'
,
$type
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment