summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2016-04-27 20:25:56 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2016-04-27 20:25:56 +0200
commit86facf92f2346a817f7e7399718a66dd4fab7f8e (patch)
treec431c9dc93743ba89ddfd94cd4822708b40f6910 /Bugzilla
parent3891b63a1eb52076337885487f251a10580a4a85 (diff)
downloadbugzilla-86facf92f2346a817f7e7399718a66dd4fab7f8e.tar.gz
bugzilla-86facf92f2346a817f7e7399718a66dd4fab7f8e.tar.xz
Bug 1268146 - profiles.email is set back to match profiles.login_name every time checksetup.pl is run
r=gerv
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Install/DB.pm6
1 files changed, 4 insertions, 2 deletions
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');