diff options
author | Dylan William Hardison <dylan@mozilla.com> | 2015-06-12 05:29:15 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2015-06-12 05:29:15 +0200 |
commit | a8675e3f1ef10a84f36b06e8ffd25e7b3033baef (patch) | |
tree | 1d0b8c2b1c7682db27ece4f81cf57f41e657f68c /Bugzilla/Install | |
parent | 7186b647fb8c3f482a302863538c5cb68a7ff50a (diff) | |
download | bugzilla-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/Install')
-rw-r--r-- | Bugzilla/Install/DB.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm index ddd127be2..5761d1963 100644 --- a/Bugzilla/Install/DB.pm +++ b/Bugzilla/Install/DB.pm @@ -122,6 +122,11 @@ sub update_fielddefs_definition { $dbh->bz_add_column('fielddefs', 'long_desc', {TYPE => 'varchar(255)', NOTNULL => 1, DEFAULT => "''"}, ''); + $dbh->bz_add_column('user_api_keys', 'app_id', + {TYPE => 'varchar(64)'}); + $dbh->bz_add_index('user_api_keys', 'user_api_keys_user_id_app_id_idx', + [qw(user_id app_id)]); + Bugzilla::Hook::process('install_update_db_fielddefs'); # Remember, this is not the function for adding general table changes. |