From 533070bb92325bbd1b40f8d5b26efebf2d6ae212 Mon Sep 17 00:00:00 2001 From: gfawcett Date: Tue, 9 Feb 2010 02:21:10 +0000 Subject: [PATCH] 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 --- conifer/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.11.0