diff --git a/resources/sql/patches/20130214.chatlogchannel.sql b/resources/sql/patches/20130214.chatlogchannel.sql new file mode 100644 index 0000000000..a28b1d0a4b --- /dev/null +++ b/resources/sql/patches/20130214.chatlogchannel.sql @@ -0,0 +1,12 @@ + +CREATE TABLE {$NAMESPACE}_chatlog.chatlog_channel ( + id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, + serviceName VARCHAR(64) COLLATE utf8_bin NOT NULL, + serviceType VARCHAR(32) COLLATE utf8_bin NOT NULL, + channelName VARCHAR(64) COLLATE utf8_bin NOT NULL, + viewPolicy VARCHAR(64) COLLATE utf8_bin NOT NULL, + editPolicy VARCHAR(64) COLLATE utf8_bin NOT NULL, + dateCreated INT UNSIGNED NOT NULL, + dateModified INT UNSIGNED NOT NULL, + UNIQUE KEY `key_channel` (channelName, serviceType, serviceName) +)ENGINE=InnoDB DEFAULT CHARSET=utf8; diff --git a/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php b/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php index 029f30fe0a..c8e5ee4e77 100644 --- a/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php +++ b/src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php @@ -1109,6 +1109,10 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList { 'type' => 'sql', 'name' => $this->getPatchPath('20130131.conpherencepics.sql'), ), + '20130214.chatlogchannel.sql' => array( + 'type' => 'sql', + 'name' => $this->getPatchPath('20130214.chatlogchannel.sql'), + ), ); }