Update `apply_migrations.sh`, `cleanup_database.sh`, and `debug_system.sh` to robustly load environment variables from the `.env` file, ensuring correct `DATABASE_URL` availability and improving script execution reliability. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 7a657272-55ba-4a79-9a2e-f1ed9bc7a528 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: b9098694-dc08-42d0-9fe9-48515e4e82a0 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/449cf7c4-c97a-45ae-8234-e5c5b8d6a84f/7a657272-55ba-4a79-9a2e-f1ed9bc7a528/4LjHWWz |
||
|---|---|---|
| .. | ||
| migrations | ||
| apply_migrations.sh | ||
| cleanup_old_logs.sql | ||
| create_detections.sql | ||
| create_network_logs.sql | ||
| create_routers.sql | ||
| create_training_history.sql | ||
| create_whitelist.sql | ||
| schema.sql | ||