瀏覽代碼

HUE-8530 [organization] Point to dedicated migrations

Romain 5 年之前
父節點
當前提交
bded94ed86
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      desktop/core/src/desktop/settings.py

+ 9 - 0
desktop/core/src/desktop/settings.py

@@ -329,6 +329,15 @@ if DEBUG: # For simplification, force all DEBUG when django_debug_mode is True a
 
 
 if desktop.conf.ENABLE_ORGANIZATIONS.get():
 if desktop.conf.ENABLE_ORGANIZATIONS.get():
   AUTH_USER_MODEL = 'useradmin.OrganizationUser'
   AUTH_USER_MODEL = 'useradmin.OrganizationUser'
+  MIGRATION_MODULES = {
+    'beeswax': 'beeswax.org_migrations',
+    'jobsub': 'jobsub.org_migrations',
+    'oozie': 'oozie.org_migrations',
+    'pig': 'pig.org_migrations',
+    'search': 'search.org_migrations',
+    'useradmin': 'useradmin.org_migrations',
+    'desktop': 'desktop.org_migrations',
+  }
 
 
 # Configure allowed hosts
 # Configure allowed hosts
 ALLOWED_HOSTS = desktop.conf.ALLOWED_HOSTS.get()
 ALLOWED_HOSTS = desktop.conf.ALLOWED_HOSTS.get()