Renamed files

This commit is contained in:
2025-08-26 21:12:11 -04:00
parent 00ddaa2d90
commit 5eb8b0e3f3
3 changed files with 8 additions and 8 deletions
@@ -164,12 +164,12 @@ def health_check():
print("2. Verify database connection and table creation")
print("3. Check Flask app initialization")
elif health_status['overall'] == 'warning':
print("1. Add performance indexes: python simple_maintenance.py add-indexes")
print("1. Add performance indexes: python db_maintenance.py add-indexes")
print("2. Set up audit triggers for data tracking")
print("3. Run regular maintenance")
else:
print("1. System is healthy!")
print("2. Run regular maintenance: python simple_maintenance.py cleanup")
print("2. Run regular maintenance: python db_maintenance.py cleanup")
print("3. Monitor performance metrics")
return health_status
+6 -6
View File
@@ -1,4 +1,4 @@
# fixed_simple_maintenance.py
# db_maintenance.py
"""
Fixed Simple Maintenance Script
==============================
@@ -437,7 +437,7 @@ def analyze_performance():
print(f"{table_info['table']}: Add performance indexes")
print(f" Rows: {table_info['rows']:,}, Priority: {table_info['priority']}")
print(f"\nTo add indexes: python fixed_simple_maintenance.py add-indexes")
print(f"\nTo add indexes: python db_maintenance.py add-indexes")
else:
print(f"\n[GOOD] All major tables have performance indexes")
@@ -483,9 +483,9 @@ def main():
print(" health-check - Run health check")
print("")
print("Examples:")
print(" python fixed_simple_maintenance.py cleanup --dry-run")
print(" python fixed_simple_maintenance.py add-indexes")
print(" python fixed_simple_maintenance.py table-info")
print(" python db_maintenance.py cleanup --dry-run")
print(" python db_maintenance.py add-indexes")
print(" python db_maintenance.py table-info")
return
command = sys.argv[1].lower()
@@ -507,7 +507,7 @@ def main():
elif command == 'health-check':
# Run health check from the other script
try:
from simple_health_check import health_check
from db_health_check import health_check
health_check()
except ImportError:
print("[ERROR] simple_health_check.py not found")