Expand the "PhabricatorExternalAccount" table for new registration
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
This commit is contained in:
31
resources/sql/patches/20130607.xaccount.sql
Normal file
31
resources/sql/patches/20130607.xaccount.sql
Normal file
@@ -0,0 +1,31 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user