diff options
Diffstat (limited to 'www/wiki/maintenance/archives/patch-bot_passwords.sql')
-rw-r--r-- | www/wiki/maintenance/archives/patch-bot_passwords.sql | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/www/wiki/maintenance/archives/patch-bot_passwords.sql b/www/wiki/maintenance/archives/patch-bot_passwords.sql new file mode 100644 index 00000000..bd60ff72 --- /dev/null +++ b/www/wiki/maintenance/archives/patch-bot_passwords.sql @@ -0,0 +1,25 @@ +-- +-- 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*/; |