In this commit, I added a new column which will be used for RDFa metadata of
[mediagoblin.git] / mediagoblin / app.py
index e9177eff33172c6b1445280792ba439bc2b43f2c..e65e6d1044958f992591e2411056fb14697c1dd8 100644 (file)
@@ -25,6 +25,7 @@ from werkzeug.exceptions import HTTPException
 from werkzeug.routing import RequestRedirect
 
 from mediagoblin import meddleware, __version__
+from mediagoblin.db.util import check_db_up_to_date
 from mediagoblin.tools import common, session, translate, template
 from mediagoblin.tools.response import render_http_exception
 from mediagoblin.tools.theme import register_themes
@@ -91,6 +92,9 @@ class MediaGoblinApp(object):
         # Set up the database
         self.db = setup_database(app_config['run_migrations'])
 
+        # Quit app if need to run dbupdate
+        check_db_up_to_date()
+
         # Register themes
         self.theme_registry, self.current_theme = register_themes(app_config)