Skip to content
Snippets Groups Projects
Commit 1fbb06ab authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch ##864020 by Jose Reyero, catch, sun: locale upgrade to D7 fails due to...

- Patch ##864020 by Jose Reyero, catch, sun: locale upgrade to D7 fails due to index added by i18nstrings module.
parent d9cc13e9
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -38,7 +38,19 @@ function locale_install() {
function locale_update_7000() {
db_drop_index('locales_source', 'source');
db_add_index('locales_source', 'source_context', array(array('source', 30), 'context'));
db_change_field('locales_source', 'location', 'location', array('type' => 'text', 'size' => 'big', 'not null' => FALSE));
// Also drop the 'textgroup_location' index added by the i18nstrings module
// of the i18n project, which prevents the below schema update from running.
if (db_index_exists('locales_source', 'textgroup_location')) {
db_drop_index('locales_source', 'textgroup_location');
}
db_change_field('locales_source', 'location', 'location', array(
'type' => 'text',
'not null' => FALSE,
'size' => 'big',
'description' => 'Drupal path in case of online discovered translations or file path in case of imported strings.',
));
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment