Commit 86facf92 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 1268146 - profiles.email is set back to match profiles.login_name every time…

Bug 1268146 - profiles.email is set back to match profiles.login_name every time checksetup.pl is run r=gerv
parent 3891b63a
...@@ -3962,9 +3962,11 @@ sub _sanitize_audit_log_table { ...@@ -3962,9 +3962,11 @@ sub _sanitize_audit_log_table {
} }
sub _split_login_and_email { sub _split_login_and_email {
my ($old_params) = (@_); my ($old_params) = @_;
my $dbh = Bugzilla->dbh; my $dbh = Bugzilla->dbh;
return if $dbh->bz_column_info('profiles', 'email');
$dbh->bz_add_column('profiles', 'email', $dbh->bz_add_column('profiles', 'email',
{TYPE => 'varchar(255)', NOTNULL => 1}, ''); {TYPE => 'varchar(255)', NOTNULL => 1}, '');
$dbh->do('UPDATE profiles SET email = login_name'); $dbh->do('UPDATE profiles SET email = login_name');
......
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