mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 21:40:55 +01:00
c3c16d0ac0
Summary: Test Plan: Reviewers: CC:
18 lines
No EOL
661 B
SQL
18 lines
No EOL
661 B
SQL
create table phabricator_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 phabricator_user.user_oauthinfo
|
|
(userID, oauthProvider, oauthUID, dateCreated, dateModified)
|
|
SELECT id, 'facebook', facebookUID, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()
|
|
FROM phabricator_user.user
|
|
WHERE facebookUID is not null;
|
|
|
|
alter table phabricator_user.user drop facebookUID; |