Commit 7325ded5 authored by Dave Reid's avatar Dave Reid
Browse files

by Dave Reid: Add update functions to get to proper schema versions before...

by Dave Reid: Add update functions to get to proper schema versions before adding the 1.x to 2.x upgrade path.
parent 3a3be2fd
......@@ -492,4 +492,19 @@ function xmlsitemap_update_18() {
db_change_field('xmlsitemap', 'subtype', 'subtype', $field);
}
//@todo Update {xmlsitemap}.language from '' to LANGUAGE_NONE.
/**
* Empty update.
*/
function xmlsitemap_update_6200() {
return array();
}
/**
* Update empty string languages to LANGUAGE_NONE.
*/
function xmlsitemap_update_7200() {
db_update('xmlsitemap')
->fields(array('language' => LANGUAGE_NONE))
->condition('language' => '')
->execute();
}
\ No newline at end of file
......@@ -67,3 +67,9 @@ function xmlsitemap_engines_update_4() {
}
variable_set('xmlsitemap_engines_engines', $engines);
}
/**
* Empty update.
*/
function xmlsitemap_engines_update_6200() {
}
......@@ -65,5 +65,3 @@ function xmlsitemap_taxonomy_update_6200() {
variable_del('xmlsitemap_taxonomy_include_empty_terms');
variable_del('xmlsitemap_taxonomy_calculate_priority');
}
// @todo Convert {xmlsitemap}.subtype from vid to vocabulary_machine_name.
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