浏览代码

HUE-5742 [core] Set default schema to public

cconner 8 年之前
父节点
当前提交
1c42cc0
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      desktop/conf.dist/hue.ini
  2. 1 1
      desktop/conf/pseudo-distributed.ini.tmpl
  3. 1 1
      desktop/core/src/desktop/conf.py

+ 1 - 1
desktop/conf.dist/hue.ini

@@ -566,7 +566,7 @@
     ## name=desktop/desktop.db
     ## name=desktop/desktop.db
     ## options={}
     ## options={}
     # Database schema, to be used only when public schema is revoked in postgres
     # Database schema, to be used only when public schema is revoked in postgres
-    ## schema=
+    ## schema=public
 
 
   # Configuration options for specifying the Desktop session.
   # Configuration options for specifying the Desktop session.
   # For more info, see https://docs.djangoproject.com/en/1.4/topics/http/sessions/
   # For more info, see https://docs.djangoproject.com/en/1.4/topics/http/sessions/

+ 1 - 1
desktop/conf/pseudo-distributed.ini.tmpl

@@ -1438,7 +1438,7 @@
       ## options={}
       ## options={}
 
 
       # Database schema, to be used only when public schema is revoked in postgres
       # Database schema, to be used only when public schema is revoked in postgres
-      ## schema=
+      ## schema=public
 
 
 ###########################################################################
 ###########################################################################
 # Settings to configure SAML
 # Settings to configure SAML

+ 1 - 1
desktop/core/src/desktop/conf.py

@@ -603,7 +603,7 @@ DATABASE = ConfigSection(
       key='schema',
       key='schema',
       help=_('Database schema, to be used only when public schema is revoked in postgres.'),
       help=_('Database schema, to be used only when public schema is revoked in postgres.'),
       type=str,
       type=str,
-      default='',
+      default='public',
     ),
     ),
     PASSWORD=Config(
     PASSWORD=Config(
       key='password',
       key='password',