mediawiki-extensions-Echo/db_patches/mysql/patch-drop-echo_target_page-etp_user.sql

12 lines
397 B
MySQL
Raw Normal View History

-- Patch to drop unused etp_user
-- Drop indexes depending on etp_user
DROP INDEX /*i*/echo_target_page_user_event ON /*_*/echo_target_page;
DROP INDEX /*i*/echo_target_page_user_page_event ON /*_*/echo_target_page;
-- Drop etp_user column
ALTER TABLE /*_*/echo_target_page DROP etp_user;
-- Add index on etp_event
CREATE INDEX /*i*/echo_target_page_event ON /*_*/echo_target_page (etp_event);