summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@mozilla.com>2015-06-16 21:35:13 +0200
committerDylan William Hardison <dylan@hardison.net>2015-06-16 21:35:13 +0200
commitd2d610f447e9d2e100ee1634fac6c69f81ca1a1c (patch)
treef9f11fd7053745d0ad05c435684d6eef146f6973 /Bugzilla/DB
parenta48e145a7b49d54937cc8672d4e2e71780a08e15 (diff)
downloadbugzilla-d2d610f447e9d2e100ee1634fac6c69f81ca1a1c.tar.gz
bugzilla-d2d610f447e9d2e100ee1634fac6c69f81ca1a1c.tar.xz
Bug 1174057: Backport upstream bug 1170722 to add app_ids for auth delegation
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 e400879ca..bb874cd27 100644
--- a/Bugzilla/DB/Schema.pm
+++ b/Bugzilla/DB/Schema.pm
@@ -1757,15 +1757,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'],
],
},
};