Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
4d048661
Commit
4d048661
authored
Aug 03, 2009
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 508032: Speed up initializing of email_setting values
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat
parent
4d94e416
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
DB.pm
Bugzilla/Install/DB.pm
+3
-11
No files found.
Bugzilla/Install/DB.pm
View file @
4d048661
...
...
@@ -2222,17 +2222,9 @@ sub _clone_email_event {
my
(
$source
,
$target
)
=
@_
;
my
$dbh
=
Bugzilla
->
dbh
;
my
$sth1
=
$dbh
->
prepare
(
"SELECT user_id, relationship FROM email_setting
WHERE event = $source"
);
my
$sth2
=
$dbh
->
prepare
(
"INSERT into email_setting "
.
"(user_id, relationship, event) VALUES ("
.
"?, ?, $target)"
);
$sth1
->
execute
();
while
(
my
(
$userid
,
$relationship
)
=
$sth1
->
fetchrow_array
())
{
$sth2
->
execute
(
$userid
,
$relationship
);
}
$dbh
->
do
(
"INSERT INTO email_setting (user_id, relationship, event)
SELECT user_id, relationship, $target FROM email_setting
WHERE event = $source"
);
}
sub
_migrate_email_prefs_to_new_table
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment