wiki.techinc.nl/maintenance/archives/patch-drop-recentchanges-user-fields.sql

12 lines
312 B
MySQL
Raw Normal View History

--
-- patch-drop-user-fields.sql
--
-- T188327. Drop old xx_user and xx_user_text fields, and defaults from xx_actor fields.
ALTER TABLE /*_*/recentchanges
DROP INDEX /*i*/rc_ns_usertext,
DROP INDEX /*i*/rc_user_text,
DROP COLUMN rc_user,
DROP COLUMN rc_user_text,
ALTER COLUMN rc_actor DROP DEFAULT;