| 36 | == Upgrading sqlite from 2.x to 3.x == |
| 37 | The database formats used by sqlite 2.x and sqlite 3.x are incompatible. If you upgrade your sqlite version (this can also happen implicitly if you upgrade pysqlite) then you must convert your database. |
| 38 | |
| 39 | To do this, install both sqlite 2.8 and sqlite 3.x (they have different filenames so can coexist in the same directory), then use the following commands (Windows): |
| 40 | {{{ |
| 41 | c:\...> ren trac.db trac2.db |
| 42 | c:\...> sqlite trac2.db .dump | sqlite3 trac.db |
| 43 | }}} |
| 44 | (Unix/Linux would be similar but with mv instead of ren) |
| 45 | |
| 46 | Then when you're happy with the conversion and tested everything ''(of course!)'' you can delete the trac2.db file. |
| 47 | |
| 48 | For more information see http://www.sqlite.org/version3.html |
| 49 | |
| 50 | |
| 51 | |