From: gfawcett Date: Tue, 9 Feb 2010 02:21:10 +0000 (+0000) Subject: conifer/settings.py: putting public at the head of the schemas list X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=533070bb92325bbd1b40f8d5b26efebf2d6ae212;p=Syrup.git conifer/settings.py: putting public at the head of the schemas list 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 --- diff --git a/conifer/settings.py b/conifer/settings.py index d39b939..d912acc 100644 --- a/conifer/settings.py +++ b/conifer/settings.py @@ -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.