1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-29 00:40:57 +01:00

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
This commit is contained in:
Keebuhm Park 2012-06-08 12:40:26 -07:00 committed by epriestley
parent 1d94d49c17
commit 207f101aee
2 changed files with 6 additions and 2 deletions

View file

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

View file

@ -851,6 +851,10 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList {
'name' => $this->getPatchPath('137.auditmetadata.sql'), 'name' => $this->getPatchPath('137.auditmetadata.sql'),
'legacy' => 137, 'legacy' => 137,
), ),
'138.notification.sql' => array(
'type' => 'sql',
'name' => $this->getPatchPath('138.notification.sql'),
),
'holidays.sql' => array( 'holidays.sql' => array(
'type' => 'sql', 'type' => 'sql',
'name' => $this->getPatchPath('holidays.sql'), 'name' => $this->getPatchPath('holidays.sql'),