From 86facf92f2346a817f7e7399718a66dd4fab7f8e Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Wed, 27 Apr 2016 20:25:56 +0200 Subject: Bug 1268146 - profiles.email is set back to match profiles.login_name every time checksetup.pl is run r=gerv --- Bugzilla/Install/DB.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm index b7ca7c657..5ac8bc5ab 100644 --- a/Bugzilla/Install/DB.pm +++ b/Bugzilla/Install/DB.pm @@ -3962,9 +3962,11 @@ sub _sanitize_audit_log_table { } sub _split_login_and_email { - my ($old_params) = (@_); - + my ($old_params) = @_; my $dbh = Bugzilla->dbh; + + return if $dbh->bz_column_info('profiles', 'email'); + $dbh->bz_add_column('profiles', 'email', {TYPE => 'varchar(255)', NOTNULL => 1}, ''); $dbh->do('UPDATE profiles SET email = login_name'); -- cgit v1.2.3-24-g4f1b