From 68aca1407ceece851d5f8ffa290e28ae39a751d8 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 17 Oct 2025 19:48:58 -0400 Subject: [PATCH] SELECT table_name FROM user_tables ORDER BY table_name --- app/api/routes/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/routes/routes.py b/app/api/routes/routes.py index a18a62a..858539f 100644 --- a/app/api/routes/routes.py +++ b/app/api/routes/routes.py @@ -140,7 +140,7 @@ def health_check(): # Check database connection try: logger.info(f"Database Health == : {SQLALCHEMY_DATABASE_URI}") - db.session.execute(text("SELECT 1")) + db.session.execute(text("SELECT table_name FROM user_tables ORDER BY table_name")) except Exception as e: db_status = "Connection Failed" errors.append(f"Database Error: {str(e)}")