diff options
author | mkanat%bugzilla.org <> | 2009-10-24 07:30:14 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-10-24 07:30:14 +0200 |
commit | 4adf7f1b401955a1938cfc7a9decdc77af2fab20 (patch) | |
tree | 9c52432a54f1769513b89e1d12ee8fc65960769c /contrib | |
parent | bb7585e3e91f156493eb14d4f052e169bdf0207f (diff) | |
download | bugzilla-4adf7f1b401955a1938cfc7a9decdc77af2fab20.tar.gz bugzilla-4adf7f1b401955a1938cfc7a9decdc77af2fab20.tar.xz |
Bug 519584: Implement a framework for migrating from other bug-trackers, and start with a GNATS importer.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/bzdbcopy.pl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/bzdbcopy.pl b/contrib/bzdbcopy.pl index b4f1fffd2..a5e81d7f8 100755 --- a/contrib/bzdbcopy.pl +++ b/contrib/bzdbcopy.pl @@ -193,8 +193,7 @@ foreach my $table (@table_list) { # PostgreSQL doesn't like it when you insert values into # a serial field; it doesn't increment the counter # automatically. - $target_db->do("SELECT pg_catalog.setval - ('${table}_${column}_seq', $max_val, false)"); + $target_db->bz_set_next_serial_value($table, $column); } elsif ($target_db->isa('Bugzilla::DB::Oracle')) { # Oracle increments the counter on every insert, and *always* |