Commit 8b5bcb2a authored by catch's avatar catch

Issue #1336170 by rvilar, Gábor Hojtsy: Fixed Incorrect schema in locale module update tests .

parent 1b4dfed4
......@@ -257,6 +257,26 @@ function locale_update_8001() {
db_drop_field('languages', 'javascript');
}
/**
* Drop textgroup support.
*
* Update assumes i18n migrated this data before the update happened. Core
* never used textgroups for anything, so it is not our job to find place
* for the data elsewhere.
*/
function locale_update_8002() {
$subquery = db_select('locales_source', 'ls')
->fields('ls', array('lid'))
->condition('ls.textgroup', 'default', '<>');
db_delete('locales_target')
->condition('lid', $subquery, 'IN')
->execute();
db_delete('locales_source')
->condition('textgroup', 'default', '<>')
->execute();
db_drop_field('locales_source', 'textgroup');
}
/**
* @} End of "addtogroup updates-7.x-to-8.x"
* The next series of updates should start at 9000.
......
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