trustmaster / trac2github

Converts Trac milestones, tickets and comments into Github issues 2.0 using github api v3
49 stars 38 forks source link

sqlite support #5

Closed yegor256 closed 10 years ago

yegor256 commented 11 years ago

Would be great if you can add sqlite support to your script. Very often, Trac is hosted on sqlite database, not MySQL. Thanks!

trustmaster commented 11 years ago

Hi,

Thanks for your attention to this, but we migrated our Trac instances 2 years ago and I don't use this script anymore. I hope that somebody else helps with a pull request for SQLite support.

yegor256 commented 11 years ago

such a pity

Habbie commented 11 years ago

Hello,

this takes nothing more than

-$trac_db = new PDO('mysql:host='.$mysqlhost_trac.';dbname='.$mysqldb_trac, $mysqluser_trac, $mysqlpassword_trac);
+$trac_db = new PDO('sqlite:trac.sqlite3');
ctrueden commented 10 years ago

This was fixed in PR #8.