This reverts commit 823db5d63dd5200d04c63da50ba6bf16f928e70b. Change-Id: Ibb3e023e4eb6715295586dea87d0725c344a8271
25 lines
674 B
SQL
25 lines
674 B
SQL
--
|
|
-- This table contains a user's bot passwords: passwords that allow access to
|
|
-- the account via the API with limited rights.
|
|
--
|
|
CREATE TABLE /*_*/bot_passwords (
|
|
-- Foreign key to user.user_id
|
|
bp_user int NOT NULL,
|
|
|
|
-- Application identifier
|
|
bp_app_id varbinary(32) NOT NULL,
|
|
|
|
-- Password hashes, like user.user_password
|
|
bp_password tinyblob NOT NULL,
|
|
|
|
-- Like user.user_token
|
|
bp_token binary(32) NOT NULL default '',
|
|
|
|
-- JSON blob for MWRestrictions
|
|
bp_restrictions blob NOT NULL,
|
|
|
|
-- Grants allowed to the account when authenticated with this bot-password
|
|
bp_grants blob NOT NULL,
|
|
|
|
PRIMARY KEY ( bp_user, bp_app_id )
|
|
) /*$wgDBTableOptions*/;
|