Allow edit summaries to be up to 767 bytes long
authorBrian Wolff <bawolff+wn@gmail.com>
Fri, 20 Feb 2015 00:31:31 +0000 (20:31 -0400)
committerSpringle <springle@wikimedia.org>
Wed, 11 Mar 2015 13:36:38 +0000 (13:36 +0000)
commit5d9b67e09ed150f342b17383e53cc0d4be1ba754
tree06ea8b96a8fe47a001f1f95fdfb0fe5398376e3f
parentbfe07bed33f353a6490899adea0408be2805b942
Allow edit summaries to be up to 767 bytes long

This is just the db part. The changes to UI validation code will
come in a dependent patch later.

This changes the max size of various *_comment, *_description
and *_reason fields to be 767 bytes. This size is chosen to
be consistent with the largest we can get away with while
still having covering indexes.

It also unifies the various data types of these fields to
varbinary. (Note, this was previously done and reverted in
r80547, but I don't think the reason for revert applies to
the edit summary fields)

MyISAM has a much smaller max index size, and this wouldn't
work with that storage engine. However, none of these fields
are used in default indexes (only in WMF indexes), so this
should not be an issue for anyone using MyISAM. Postgress
and sqlite already supported the larger edit summary size.

Note: This patch increases min mysql version to 5.0.3.

Bug: T6715
Change-Id: I8558e80a18e4591f07f2c3e80f792ea4435c4e71
includes/installer/MysqlInstaller.php
includes/installer/MysqlUpdater.php
includes/installer/SqliteUpdater.php
maintenance/archives/patch-editsummary-length.sql [new file with mode: 0644]
maintenance/sqlite/archives/patch-editsummary-length.sql [new file with mode: 0644]
maintenance/tables.sql