mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-05 05:02:44 +01:00
8886416e30
Summary: Ref T1536. This is the schema code for `PhabricatorExternalAccount` which was previously in D4647. I'm splitting it out so I can put it earlier in the sequence and because it's simple and standalone. Expands `PhabricatorExternalAccount` to have everything we need for the rest of registration. Test Plan: Implemented the remainder of new registration on top of this. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T1536 Differential Revision: https://secure.phabricator.com/D6169
31 lines
1.1 KiB
SQL
31 lines
1.1 KiB
SQL
TRUNCATE {$NAMESPACE}_user.user_externalaccount;
|
|
|
|
ALTER TABLE {$NAMESPACE}_user.user_externalaccount
|
|
CHANGE accountDomain accountDomain varchar(64) NOT NULL COLLATE utf8_bin;
|
|
|
|
ALTER TABLE {$NAMESPACE}_user.user_externalaccount
|
|
CHANGE displayName displayName varchar(255) COLLATE utf8_bin;
|
|
|
|
ALTER TABLE {$NAMESPACE}_user.user_externalaccount
|
|
ADD username VARCHAR(255) COLLATE utf8_bin;
|
|
|
|
ALTER TABLE {$NAMESPACE}_user.user_externalaccount
|
|
ADD realName VARCHAR(255) COLLATE utf8_bin;
|
|
|
|
ALTER TABLE {$NAMESPACE}_user.user_externalaccount
|
|
ADD email VARCHAR(255) COLLATE utf8_bin;
|
|
|
|
ALTER TABLE {$NAMESPACE}_user.user_externalaccount
|
|
ADD emailVerified BOOL NOT NULL COLLATE utf8_bin;
|
|
|
|
ALTER TABLE {$NAMESPACE}_user.user_externalaccount
|
|
ADD accountURI VARCHAR(255) COLLATE utf8_bin;
|
|
|
|
ALTER TABLE {$NAMESPACE}_user.user_externalaccount
|
|
ADD profileImagePHID VARCHAR(64) COLLATE utf8_bin;
|
|
|
|
ALTER TABLE {$NAMESPACE}_user.user_externalaccount
|
|
ADD properties LONGTEXT NOT NULL COLLATE utf8_bin;
|
|
|
|
ALTER TABLE {$NAMESPACE}_user.user_externalaccount
|
|
ADD KEY `key_userAccounts` (userPHID);
|