mediawiki-extensions-Echo/db_patches/mysql/patch-drop-echo_target_page-etp_user.sql
Reedy 532faf27f5 Reorganise MySQL/SQLite patches
SQL files that are MySQL/SQLite specific have been moved to subfolders

Change-Id: Ib677815f2fb6a4e3aa0236a31160efaf761ad4ef
2021-06-26 16:24:14 +00:00

12 lines
397 B
SQL

-- 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);