Przeglądaj źródła

HUE-8375 [core] Update Hue check config for migrations

jdesjean 7 lat temu
rodzic
commit
c814da85d0
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      desktop/core/src/desktop/conf.py

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

@@ -1681,11 +1681,11 @@ def validate_database(user):
     res.append(('SQLITE_NOT_FOR_PRODUCTION_USE', unicode(_('SQLite is only recommended for development environments. '
         'It might cause the "Database is locked" error. Migrating to MySQL, Oracle or PostgreSQL is strongly recommended.'))))
 
-  # Check if south_migrationhisotry table is up to date
+  # Check if django_migrations table is up to date
   try:
     from desktop import appmanager
 
-    cursor.execute('''SELECT * from south_migrationhistory''')
+    cursor.execute('''SELECT * from django_migrations''')
     migration_history_entries = [(entry[1], entry[2]) for entry in cursor.fetchall()]
 
     apps = appmanager.get_apps(user)
@@ -1699,10 +1699,10 @@ def validate_database(user):
               missing_migration_entries.append((app.name, migration_name))
 
     if missing_migration_entries:
-      res.append(('SOUTH_MIGRATION_HISTORY', unicode(_('''south_migrationhistory table seems to be corrupted or incomplete.
+      res.append(('django_migrations', unicode(_('''django_migrations table seems to be corrupted or incomplete.
                                                         %s entries are missing in the table: %s''') % (len(missing_migration_entries), missing_migration_entries))))
   except Exception:
-    LOG.exception("Error in config validation of SOUTH_MIGRATION_HISTORY")
+    LOG.exception("Error in config validation of django_migrations")
 
   return res