Changes between Version 1 and Version 2 of PgSchemaPatch


Ignore:
Timestamp:
Jan 13, 2006, 9:25:34 PM (9 years ago)
Author:
pacopablo
Comment:

updated example for dealing with new URI syntax

Legend:

Unmodified
Added
Removed
Modified
  • PgSchemaPatch

    v1 v2  
    2525== Example ==
    2626
    27 Adds an additional parameter to '''trac-admin initenv''' if using PostgreSQL.
    28 
    2927Simply apply the patch:
    3028{{{
    3129cd path/to/trac/src/trac-0.9.3
    32 patch -p1 < trac-0.9.3-schema.patch
     30patch -p1 < trac-0.9.3-schema.patch
    3331python setup.py install
    3432}}}
    3533
    36 Then when creating a new site, if you enter a PostgreSQL database string, you will be prompted with which schema to use.  trac-admin will take care of creating the schema.
     34Then when creating a new site, append the schema name to the PostgreSQL DB URIas in the example below:
    3735{{{
    38 trac-admin initenv new_proj postgres://myuser@localhost/mydb proj_schema /var/svn/new_proj /usr/share/trac/templates
     36trac-admin initenv new_proj postgres://myuser@localhost/mydb?schema=my_schema /var/svn/new_proj /usr/share/trac/templates
    3937}}}
    4038