conifer/settings.py: putting public at the head of the schemas list
authorgfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Tue, 9 Feb 2010 02:21:10 +0000 (02:21 +0000)
committergfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Tue, 9 Feb 2010 02:21:10 +0000 (02:21 +0000)
Since our backend derives the search_path from DATABASE_PG_SCHEMAS,
and since some of the utility tables in Django have no explicit
schema, a 'syncdb' action will create those tables in the first schema
in the list. Therefore, start with 'public', unless you have an
awesome reason why not to.

git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/branches/eg-schema-experiment@772 6d9bc8c9-1ec2-4278-b937-99fde70a366f

conifer/settings.py

index d39b939..d912acc 100644 (file)
@@ -17,7 +17,7 @@ ADMINS = (
 MANAGERS = ADMINS
 
 DATABASE_ENGINE = 'conifer.evergreen.backends.postgresql_with_schemas'
-DATABASE_PG_SCHEMAS = ['actor','asset','config','permission','reserves']
+DATABASE_PG_SCHEMAS = ['public','actor','asset','config','permission','reserves']
 DATABASE_NAME = 'robin'             # Or path to database file if using sqlite3.
 DATABASE_USER = 'postgres'             # Not used with sqlite3.
 DATABASE_PASSWORD = 'XXX'         # Not used with sqlite3.