1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 13:00:56 +01:00
phorge-phorge/resources/sql/patches/138.notification.sql
Keebuhm Park 207f101aee SQL patch for notification
Summary: Added `PhabricatorBuiltinPatchList` entry so that "storage upgrade" will update the database. Renamed and numbered the notification.sql patch.

Test Plan: Drop phabricator_feed.feed_storynotification table if it exists and run bin/storage upgrade to check if the patch is correctly applied.

Reviewers: epriestley, btrahan, allenjohnashton

Reviewed By: epriestley

CC: ddfisher, aran, Korvin

Differential Revision: https://secure.phabricator.com/D2687
2012-06-08 12:42:59 -07:00

8 lines
372 B
SQL

CREATE TABLE {$NAMESPACE}_feed.feed_storynotification (
userPHID varchar(64) not null collate utf8_bin,
primaryObjectPHID varchar(64) not null collate utf8_bin,
chronologicalKey BIGINT UNSIGNED NOT NULL,
hasViewed boolean not null,
UNIQUE KEY (userPHID, chronologicalKey),
KEY (userPHID, hasViewed, primaryObjectPHID)
) ENGINE=InnoDB, COLLATE utf8_general_ci;