summaryrefslogtreecommitdiff
path: root/maintenance/archives/patch-external_user.sql
blob: 176b46d4ade37379d7449fc5125ec1d8cf024468 (plain)
1
2
3
4
5
6
7
8
9
CREATE TABLE /*_*/external_user (
  -- Foreign key to user_id
  eu_local_id int unsigned NOT NULL PRIMARY KEY,

  -- Some opaque identifier provided by the external database
  eu_external_id varchar(255) binary NOT NULL
) /*$wgDBTableOptions*/;

CREATE UNIQUE INDEX /*i*/eu_external_id ON /*_*/external_user (eu_external_id);