wiki.techinc.nl/maintenance/archives/patch-watchlist_expiry.sql
MusikAnimal 865755dbe5 Create new table for watchlist expiry
This table will store expiries for watchlist items, so that pages can be
automatically unwatched at a specific time.

Bug: T240094
Change-Id: I014ffccb91969e7a222a83858c55e71067b0f2af
2020-02-07 14:59:50 -05:00

9 lines
300 B
SQL

-- Allows setting an expiry for watchlist items.
CREATE TABLE /*_*/watchlist_expiry (
-- Key to watchlist.wl_id
we_item int unsigned NOT NULL PRIMARY KEY,
-- Expiry time
we_expiry binary(14) NOT NULL
) /*$wgDBTableOptions*/;
CREATE INDEX /*i*/we_expiry ON /*_*/watchlist_expiry (we_expiry);