mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
b8b3a3ab0b
When upgrading to `utf8mb4`, `TEXT` fields will be upgraded to `MEDIUMTEXT` (and likewise for all other `*TEXT` and `*BLOB` fields). This is to allow for the additional space requirements of `utf8mb4`. On the subsequent upgrade, `dbDelta()` would try and downgrade the fields to their original size again. At best, this it a waste of time, at worst, this could truncate any data larger than the original size. There's no harm in leaving them at their new size, so let's do that. This also fixes a typo in the `dbDelta()` tests. Merge of [37525] to the 4.4 branch. Partial merge of [36552] to the 4.4 branch. See #36748. git-svn-id: https://develop.svn.wordpress.org/branches/4.4@37936 602fd350-edb4-49c9-b593-d223f7449a82