Commit d9e2608b authored by Dave Reid's avatar Dave Reid

by Dave Reid: Updated for db_column_exists() renamed to db_field_exists().

parent 6e50221d
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment