diff --git a/add_audit_tables.py b/db_audit_tables.py similarity index 100% rename from add_audit_tables.py rename to db_audit_tables.py diff --git a/simple_health_check.py b/db_health_check.py similarity index 97% rename from simple_health_check.py rename to db_health_check.py index 85631c1..8497b88 100644 --- a/simple_health_check.py +++ b/db_health_check.py @@ -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 diff --git a/simple_maintenance.py b/db_maintenance.py similarity index 98% rename from simple_maintenance.py rename to db_maintenance.py index 61cdcb7..5c9e4a3 100644 --- a/simple_maintenance.py +++ b/db_maintenance.py @@ -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")