On Tue, Feb 23, 2010 at 11:38 AM, Pechoultres Xavier
<[email protected]> wrote:
>
> Le 23 oct. 2009 à 20:28, Olemis Lang a écrit :
>
>>
>> On Thu, Oct 22, 2009 at 7:10 AM, En_t_end <[email protected]> wrote:
>>>
>>> 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.
>>
>> You will need :
>>  - Implement environment setup participant
>>  - Use classes to define table schema `trac.db.*`
>>  - Use the hack `select 1 from table_name` to know whether a table
>> exists or not ;o)
>
>
> Hi,
>
>        to manage my own database version, can I store it in the system table.
>
> ex:
> INSERT INTO system (name,value) VALUES ('my_plugin_db_version',0)
>

Is it specific to SQLite or works for any DB backend ?

-- 
Regards,

Olemis.

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:
Fixed 3 bugs identified by Steffen Pingel (from Mylyn test suite), and
also added a test case...  -
http://bitbucket.org/osimons/trac-rpc-mq/changeset/ba2572404912/

-- 
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.

Reply via email to