mediawiki-extensions-Echo/db_patches/patch-drop-echo_target_page-etp_user.sql
Stephane Bisson b3c07eedeb Remove etp_user
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
2016-09-09 09:32:28 -04: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);