1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 21:40:55 +01:00
phorge-phorge/resources/sql/patches/20130417.externalaccount.sql
Afaque Hussain dc6cfe6e01 Created PhabricatorExternalAccount Class and Sql patch to create an external_account table.
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
2013-04-19 11:40:24 -07:00

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;