mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 23:32:40 +01:00
dc6cfe6e01
Summary: Created PhabricatorExternalAccount class with only data members. Will discuss with you regarding the necessary functions to be implemented in this class. Sql Patch to create a new table for external_accounts. Will I have to write unit tests the new storage object? Sending you this diff so that you can comment on this to further improve :). Test Plan: {F40977} Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin, AnhNhan Maniphest Tasks: T1536, T1205 Differential Revision: https://secure.phabricator.com/D5724
12 lines
559 B
SQL
12 lines
559 B
SQL
|
|
CREATE TABLE {$NAMESPACE}_user.externalaccount (
|
|
id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
|
phid VARCHAR(64) COLLATE utf8_bin NOT NULL UNIQUE KEY,
|
|
userPHID VARCHAR(64) COLLATE utf8_bin,
|
|
accountType VARCHAR(16) COLLATE utf8_bin NOT NULL,
|
|
accountDomain VARCHAR(64) COLLATE utf8_bin,
|
|
accountSecret LONGTEXT COLLATE utf8_bin,
|
|
accountID VARCHAR(160) COLLATE utf8_bin NOT NULL,
|
|
displayName VARCHAR(256) COLLATE utf8_bin NOT NULL,
|
|
UNIQUE KEY `account_details` (accountType, accountDomain, accountID)
|
|
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
|