Great! Thanks Simon.
ps: what is the "plugin_name_infotext" row in the system table for? http://trac-hacks.org/browser/fullblogplugin/0.11/tracfullblog/db.py#L58 On Mar 9, 8:03 am, osimons <[email protected]> wrote: > On Mar 8, 10:18 pm, "[email protected]" > > <[email protected]> wrote: > > Hi, > > > I am creating a plug-in and need a to add a table to the database. > > Here is what I came up with: > > (snip) > > > Is there a better way to do it? > > Yes, use trac.env.IEnvironmentSetupParticipant. > > Here is an example from my FullBlogPlugin - creating initial schema, > and also documenting where you would insert code if you need to > migrate to newer versions later (my db schema is still at version 1): > > http://trac-hacks.org/browser/fullblogplugin/0.11/tracfullblog/db.py > > :::simon > > http://www.coderesort.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
