From a8675e3f1ef10a84f36b06e8ffd25e7b3033baef Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Thu, 11 Jun 2015 23:29:15 -0400 Subject: Bug 1170722: Authentication Delegation should add an App ID column to associate api keys with specific callbacks r=dkl,a=glob --- Bugzilla/Install/DB.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Bugzilla/Install') 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. -- cgit v1.2.3-24-g4f1b