| 1 | [[PageOutline(2)]] |
| 2 | |
| 3 | = Trac Database Schema: Wiki System |
| 4 | |
| 5 | Trac's wiki system stores the pages (including old versions) in just a single database table. |
| 6 | |
| 7 | == Table `wiki` |
| 8 | ||'''Table'''||'''Key'''|| |
| 9 | ||''wiki''||''name'', ''version''|| |
| 10 | |
| 11 | ||'''Columns'''||'''Type'''|| |
| 12 | ||''name''|| || |
| 13 | ||''version''||`int`|| |
| 14 | ||''time''||`int64`|| |
| 15 | ||''author''|| || |
| 16 | ||''ipnr''|| || |
| 17 | ||''text''|| || |
| 18 | ||''comment''|| || |
| 19 | ||''readonly''||`int`|| |
| 20 | |
| 21 | ||'''Indexes'''|| |
| 22 | ||''time''|| |
| 23 | |
| 24 | Stores the wiki pages (current and old versions). |
| 25 | |
| 26 | Use the `trac.wiki.model.WikiPage` model class instead of accessing this table directly. |
| 27 | |
| 28 | See [browser:trunk/trac/wiki/model.py trac.wiki.model.WikiPage], TracDev/DataModels#WikiPage |