summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@mozilla.com>2015-06-12 05:29:15 +0200
committerDylan William Hardison <dylan@hardison.net>2015-06-12 05:29:15 +0200
commita8675e3f1ef10a84f36b06e8ffd25e7b3033baef (patch)
tree1d0b8c2b1c7682db27ece4f81cf57f41e657f68c /Bugzilla/DB
parent7186b647fb8c3f482a302863538c5cb68a7ff50a (diff)
downloadbugzilla-a8675e3f1ef10a84f36b06e8ffd25e7b3033baef.tar.gz
bugzilla-a8675e3f1ef10a84f36b06e8ffd25e7b3033baef.tar.xz
Bug 1170722: Authentication Delegation should add an App ID column to associate api keys with specific callbacks
r=dkl,a=glob
Diffstat (limited to 'Bugzilla/DB')
-rw-r--r--Bugzilla/DB/Schema.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm
index c089513e3..3d904ba8b 100644
--- a/Bugzilla/DB/Schema.pm
+++ b/Bugzilla/DB/Schema.pm
@@ -1779,15 +1779,17 @@ use constant ABSTRACT_SCHEMA => {
REFERENCES => {TABLE => 'profiles',
COLUMN => 'userid',
DELETE => 'CASCADE'}},
- api_key => {TYPE => 'VARCHAR(40)', NOTNULL => 1},
- description => {TYPE => 'VARCHAR(255)'},
+ api_key => {TYPE => 'varchar(40)', NOTNULL => 1},
+ description => {TYPE => 'varchar(255)'},
revoked => {TYPE => 'BOOLEAN', NOTNULL => 1,
DEFAULT => 'FALSE'},
last_used => {TYPE => 'DATETIME'},
+ app_id => {TYPE => 'varchar(64)'},
],
INDEXES => [
user_api_keys_api_key_idx => {FIELDS => ['api_key'], TYPE => 'UNIQUE'},
user_api_keys_user_id_idx => ['user_id'],
+ user_api_keys_user_id_app_id_idx => ['user_id', 'app_id'],
],
},
};