When running the D8 upgrade in a language other than English, the locale system is used, which includes locale string tables. So we need to move corresponding updates to locale.inc (update_prepare_d8_language)
Actually, this was causing a lot of issues with this patch, which atm needs some hacking around locale queries for the update process not to crash #1785086: Introduce a generic API for interface translation strings
(Which means if we fix this one, that queries could be simplified.)
This is a very small and straight forward patch, most of the lines are renumbering the other locale updates.
Comment | File | Size | Author |
---|---|---|---|
#3 | drupal8.locale-update.3.patch | 1.65 KB | sun |
locale_update_tables-01.patch | 3.52 KB | Jose Reyero | |
Comments
Comment #1
Gábor HojtsyLooks very simple and straightforward. Should be RTBC if comes back green. It will fire it to needs work automatically otherwise :)
Comment #2
sun1) Let's add a !db_field_exists() condition after the db_table_exists() condition.
2) The second comment should actually come first, and it looks like we can combine and shorten the first into it then.
1) Why is this $customized_spec vs. just $spec?
2) Too much indentation?
Let's just remove the update 8006 without renumbering, please.
Comment #3
sunComment #4
Gábor HojtsyI think we want to renumber updates instead of leaving holes, but I'm fine either way, if this is preferred. It does not matter as long as the main bug is fixed, which the update patch still does. Thanks!
Comment #5
webchickI think the hole is probably fine for now; most likely we'll do a big round of update clean-up before beta.
Confirmed that this matches the schema defined in locale_schema(), so committed and pushed to 8.x. Thanks!
Comment #6
sunAs this in #2 showed:
There was a hole before this patch already.
There's nothing wrong with removing updates. Renumbering the others only causes havoc - especially for sites that are running on HEAD already - for absolutely no reason, other than pedantic silliness of "But 2 comes after 1!". We should stop renumbering updates.