From 9baada15711befa0e11fbd0890b2dceef576629e Mon Sep 17 00:00:00 2001 From: Afaque Hussain Date: Thu, 14 Feb 2013 11:36:51 -0800 Subject: [PATCH] Schema Patch to Add a New Table Summary: Added 20130214.chatlogchannel.sql in resources/sql/patches to add a new table Test Plan: Hmmmmm ....... Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4952 --- resources/sql/patches/20130214.chatlogchannel.sql | 12 ++++++++++++ .../storage/patch/PhabricatorBuiltinPatchList.php | 4 ++++ 2 files changed, 16 insertions(+) create mode 100644 resources/sql/patches/20130214.chatlogchannel.sql 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'), + ), ); }