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 /Bugzilla/DB/Schema/Mysql.pm | |
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 'Bugzilla/DB/Schema/Mysql.pm')
-rw-r--r-- | Bugzilla/DB/Schema/Mysql.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla/DB/Schema/Mysql.pm b/Bugzilla/DB/Schema/Mysql.pm index 95ef3141e..a68c7c90d 100644 --- a/Bugzilla/DB/Schema/Mysql.pm +++ b/Bugzilla/DB/Schema/Mysql.pm @@ -263,6 +263,11 @@ sub get_rename_indexes_ddl { return ($sql); } +sub get_set_serial_sql { + my ($self, $table, $column, $value) = @_; + return ("ALTER TABLE $table AUTO_INCREMENT = $value"); +} + # Converts a DBI column_info output to an abstract column definition. # Expects to only be called by Bugzila::DB::Mysql::_bz_build_schema_from_disk, # although there's a chance that it will also work properly if called |