diff options
author | Byron Jones <glob@mozilla.com> | 2015-09-23 05:02:53 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-09-23 05:02:53 +0200 |
commit | ff04d309cd9647aa4eb4d8933296121198507f8a (patch) | |
tree | ee8ea518c774084194e7ae1254d012a889bfff88 | |
parent | 04b55ee366685963928fe37268cc9d99e5477a18 (diff) | |
download | bugzilla-ff04d309cd9647aa4eb4d8933296121198507f8a.tar.gz bugzilla-ff04d309cd9647aa4eb4d8933296121198507f8a.tar.xz |
Bug 1199087 - extend 2fa protection beyond login (schema only)
-rw-r--r-- | Bugzilla/DB/Schema.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm index 4cf0ef05e..1c765bb9e 100644 --- a/Bugzilla/DB/Schema.pm +++ b/Bugzilla/DB/Schema.pm @@ -1208,6 +1208,18 @@ use constant ABSTRACT_SCHEMA => { ], }, + token_data => { + FIELDS => [ + id => { TYPE => 'INTSERIAL', NOTNULL => 1, PRIMARYKEY => 1 }, + token => { TYPE => 'varchar(22)', NOTNULL => 1, + REFERENCES => { TABLE => 'tokens', COLUMN => 'token', DELETE => 'CASCADE' }}, + extra_data => { TYPE => 'MEDIUMTEXT', NOTNULL => 1 }, + ], + INDEXES => [ + token_data_idx => { FIELDS => ['token'], TYPE => 'UNIQUE' }, + ], + }, + # GROUPS # ------ |