mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 16:52:41 +01:00
6270114767
Summary: - Removed trailing newlines. - Added newline at EOF. - Removed leading newlines. - Trimmed trailing whitespace. - Spelling fix. - Added newline at EOF Test Plan: N/A Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: hach-que, chad, Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D8344
18 lines
666 B
SQL
18 lines
666 B
SQL
create table {$NAMESPACE}_user.user_oauthinfo (
|
|
id int unsigned not null auto_increment primary key,
|
|
userID int unsigned not null,
|
|
oauthProvider varchar(255) not null,
|
|
oauthUID varchar(255) not null,
|
|
unique key (userID, oauthProvider),
|
|
unique key (oauthProvider, oauthUID),
|
|
dateCreated int unsigned not null,
|
|
dateModified int unsigned not null
|
|
);
|
|
|
|
insert into {$NAMESPACE}_user.user_oauthinfo
|
|
(userID, oauthProvider, oauthUID, dateCreated, dateModified)
|
|
SELECT id, 'facebook', facebookUID, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()
|
|
FROM {$NAMESPACE}_user.user
|
|
WHERE facebookUID is not null;
|
|
|
|
alter table {$NAMESPACE}_user.user drop facebookUID;
|