Python Script to port Bugzilla MySQL to Mantis PostgreSQL
Posted: 16 Feb 2007, 20:10
I just ported our old bugzilla database hosted in MySQL to Mantis hosted
in PostgreSQL. Since it took a couple days to put together the script for the
port, it may be worth sharing. I took a look at Agusti Fontquerni's
bugzilla2mantis.php script. It was a helpful roadmap but didn't dig out all
the information that I wanted, nor did it "hook in" to the new project layout.
The program copies all of your attachments out of MySQL and
creates an sql file that you can feed in, via pgsql, to port the database.
In addition to the items handled by bugzilla@mantis.php, bug history is
ported as well as attachments.
The basic working mentality is that you generate the users, projects,
categories and versions by hand, and then run this script to map all
your old bugs and bug history.
It could definitly use some polishing, (nice command line args, simultaneous
connection to PostgreSQL to check for sequence number conflicts, etc. )
I won't be maintaining it but anyone else is welcome to do so.
Instructions and script are at: http://www-pw.physics.uiowa.edu/~cwp/in ... ?bz2m_port
in PostgreSQL. Since it took a couple days to put together the script for the
port, it may be worth sharing. I took a look at Agusti Fontquerni's
bugzilla2mantis.php script. It was a helpful roadmap but didn't dig out all
the information that I wanted, nor did it "hook in" to the new project layout.
The program copies all of your attachments out of MySQL and
creates an sql file that you can feed in, via pgsql, to port the database.
In addition to the items handled by bugzilla@mantis.php, bug history is
ported as well as attachments.
The basic working mentality is that you generate the users, projects,
categories and versions by hand, and then run this script to map all
your old bugs and bug history.
It could definitly use some polishing, (nice command line args, simultaneous
connection to PostgreSQL to check for sequence number conflicts, etc. )
I won't be maintaining it but anyone else is welcome to do so.
Instructions and script are at: http://www-pw.physics.uiowa.edu/~cwp/in ... ?bz2m_port