forked from DigiFi/digifi-BankToProductCore
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
|
||||
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)}")
|
||||
|
||||
Reference in New Issue
Block a user