http://trac-hacks.org/browser/tracforgeplugin/0.11/tracforge/admin/api.py#L6 9
That snippet (and the db_default.py) will do it as well as handling things like schema migration. --Noah > -----Original Message----- > From: [email protected] [mailto:[email protected]] > On Behalf Of En_t_end > Sent: Thursday, October 22, 2009 5:10 AM > To: Trac Users > Subject: [Trac] Create tables in plugin behavior > > > I am developing a plugin, which needs to create multiple tables in > Trac database to work. > Once the plugin is installed may: > 1) Required for plugin table created earlier. Then use a previously > created table. > 2) The necessary tables are not. Then create a table. > How can I check in the plugin code, exist a table or not? > I know that it is possible to know if using a specific DBMS. What if > the plugin should work with any Trac configuration ? > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
