Commit 046d3a48 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 423613: Make profiles.extern_id actually UNIQUE in the DB schema.

Patch by arbingersys@gmail.com r=mkanat, a=mkanat
parent d9041c3f
......@@ -825,6 +825,8 @@ use constant ABSTRACT_SCHEMA => {
INDEXES => [
profiles_login_name_idx => {FIELDS => ['login_name'],
TYPE => 'UNIQUE'},
profiles_extern_id_idx => {FIELDS => ['extern_id'],
TYPE => 'UNIQUE'}
],
},
......
......@@ -554,6 +554,10 @@ sub update_table_definitions {
_add_visiblity_value_to_value_tables();
# 2009-03-02 arbingersys@gmail.com - Bug 423613
$dbh->bz_add_index('profiles', 'profiles_extern_id_idx',
{TYPE => 'UNIQUE', FIELDS => [qw(extern_id)]});
################################################################
# New --TABLE-- changes should go *** A B O V E *** this point #
################################################################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment