SELECT table_name FROM user_tables ORDER BY table_name
This commit is contained in:
@@ -140,7 +140,7 @@ def health_check():
|
|||||||
# Check database connection
|
# Check database connection
|
||||||
try:
|
try:
|
||||||
logger.info(f"Database Health == : {SQLALCHEMY_DATABASE_URI}")
|
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:
|
except Exception as e:
|
||||||
db_status = "Connection Failed"
|
db_status = "Connection Failed"
|
||||||
errors.append(f"Database Error: {str(e)}")
|
errors.append(f"Database Error: {str(e)}")
|
||||||
|
|||||||
Reference in New Issue
Block a user