mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-13 08:31:23 +00:00
b3c07eedeb
Target page entries used to exist for each user that was notified for an event. They were removed as the notifications were marked as read. Now they remain so that the association between pages and events can be used for moderation regardless of the notifications read status. This patch removes everything about echo_target_page.etp_user from sql and php code. Bug: T143959 Change-Id: Ib57510e6b0e9202a7e035f8ea59955dca8a0b24a
12 lines
397 B
SQL
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);
|