wiki.techinc.nl/maintenance/archives/patch-nullable-ar_text.sql
Brad Jorsch 21c6ae1163 Drop archive.ar_text and ar_flags
This should have been done long ago. Now it is being done.

This also changes ar_text_id to NOT NULL, since it should never be null
anymore, and DEFAULT 0 in preparation for MCR stopping writing it.

Bug: T33223
Change-Id: I18f1c740b7537c7dc3cfeba9b241d0a9f31caa34
2018-04-03 12:54:27 -04:00

13 lines
461 B
SQL

--
-- patch-nullable-ar_text.sql
--
-- This patch is provided as an example for people not using update.php.
-- You need to make a change like this before running a version of MediaWiki
-- containing Gerrit change 5ca2d4a551, then you can run maintenance/migrateArchiveText.php
-- and apply patch-drop-ar_text.sql at your leisure.
--
-- See also T33223.
ALTER TABLE /*_*/archive
MODIFY COLUMN ar_text mediumblob NULL,
MODIFY COLUMN ar_flags tinyblob NULL;