diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2016-04-27 20:25:56 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2016-04-27 20:25:56 +0200 |
commit | 86facf92f2346a817f7e7399718a66dd4fab7f8e (patch) | |
tree | c431c9dc93743ba89ddfd94cd4822708b40f6910 /Bugzilla | |
parent | 3891b63a1eb52076337885487f251a10580a4a85 (diff) | |
download | bugzilla-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.pm | 6 |
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'); |