diff --git a/resources/sql/patches/temp.notifications.sql b/resources/sql/patches/138.notification.sql similarity index 73% rename from resources/sql/patches/temp.notifications.sql rename to resources/sql/patches/138.notification.sql index f10664d539..d05c8d97a1 100644 --- a/resources/sql/patches/temp.notifications.sql +++ b/resources/sql/patches/138.notification.sql @@ -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, 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; diff --git a/src/infrastructure/setup/sql/PhabricatorBuiltinPatchList.php b/src/infrastructure/setup/sql/PhabricatorBuiltinPatchList.php index 41456e08c8..c68f3cab4a 100644 --- a/src/infrastructure/setup/sql/PhabricatorBuiltinPatchList.php +++ b/src/infrastructure/setup/sql/PhabricatorBuiltinPatchList.php @@ -851,6 +851,10 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList { 'name' => $this->getPatchPath('137.auditmetadata.sql'), 'legacy' => 137, ), + '138.notification.sql' => array( + 'type' => 'sql', + 'name' => $this->getPatchPath('138.notification.sql'), + ), 'holidays.sql' => array( 'type' => 'sql', 'name' => $this->getPatchPath('holidays.sql'),