wiki.techinc.nl/maintenance/archives/patch-recentchanges-rc_title-varbinary.sql
Amir Sarabadani 4a6d4baaed Migrate recentchanges table to abstract schema
This table is massive but thankfully we fixed most of its complexities
in previous patches.

For MySQL/Sqlite:
 - Change type of rc_title and rc_source from "varchar binary" to
   "varbinary"
 - Drop default of rc_timestamp
 - Change rc_timestamp from varbinary(14) to binary(14) to standardize
   timestamp datatypes

One index doesn't follow the uniform prefix rule but since it's in a
maintenance script, will fix that in a follow up.

Bug: T230428
Bug: T42626
Change-Id: I13994e02ad3a2293148346ef7be96746578ad854
2021-02-26 13:56:56 +01:00

3 lines
143 B
SQL

ALTER TABLE /*_*/recentchanges
MODIFY rc_title VARBINARY(255) DEFAULT '' NOT NULL,
MODIFY rc_source VARBINARY(16) DEFAULT '' NOT NULL;