mediawiki-extensions-Echo/db_patches/patch-notification-pk.sql
Roan Kattouw fea95cdb49 Add a primary key to the echo_notification table
Take the existing unique index on (user, event) and make it the PK.

Bug: T136428
Change-Id: I659953d80bf3bcf3a6303fa6e09aefed2ecb1987
2016-09-07 21:49:09 -07:00

4 lines
147 B
SQL

DROP INDEX /*i*/user_event ON /*_*/echo_notification;
ALTER TABLE /*_*/echo_notification ADD PRIMARY KEY (notification_user, notification_event);