summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-12-05 00:32:11 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-12-05 00:32:11 +0100
commit7f24fc60c9e8d63e940db4625f19c738384c31bb (patch)
treeded4d238bee59a9e4e3a5f74c3e2cbf6ef4cd209 /contrib
parentfce33f32f8c72dd408f94c3aef3ff32b0ed3dd46 (diff)
downloadbugzilla-7f24fc60c9e8d63e940db4625f19c738384c31bb.tar.gz
bugzilla-7f24fc60c9e8d63e940db4625f19c738384c31bb.tar.xz
Bug 929321 - create a script to delete all bugs from the database, and generate two dumps (with and without bugs)
- Added standard way of updating the serial id of bugs table
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/nuke-bugs.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/nuke-bugs.pl b/contrib/nuke-bugs.pl
index 813d3f741..0226c1726 100755
--- a/contrib/nuke-bugs.pl
+++ b/contrib/nuke-bugs.pl
@@ -52,7 +52,7 @@ delete_from_table('bug_group_map');
delete_from_table('bugs');
delete_from_table('longdescs');
-$dbh->do("ALTER TABLE bugs AUTO_INCREMENT = 1"); # MySQL specific
+$dbh->do($dbh->_bz_real_schema->get_set_serial_sql('bugs', 'bug_id', 1));
$dbh->bz_commit_transaction();