1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-27 07:50:57 +01:00
phorge-phorge/resources/sql/patches/20130607.xaccount.sql
epriestley 8886416e30 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
2013-06-14 06:55:18 -07:00

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);