coolify/app/Actions/Database
Andras Bacsai 75d8ebe803 fix(restart): reset restart count when resource is manually stopped
When a database or application was in a restart loop, the restart count
persisted even after the user manually stopped the resource. This caused
the UI to continue showing "(Xx restarts)" after user intervention.

Now resets restart_count, last_restart_at, and last_restart_type when:
- User stops a database (StopDatabase action)
- User stops an application (StopApplication action)

The existing reset in GetContainersStatus is still needed for containers
that exit on their own (crash without recovery, Docker giving up).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2025-12-27 15:21:19 +01:00
..
RestartDatabase.php Fix database restart to skip unnecessary Docker cleanup 2025-11-20 17:15:45 +01:00
StartClickhouse.php Added ClickHouse Migration Support (#7392) 2025-12-17 11:37:53 +01:00
StartDatabase.php Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00
StartDatabaseProxy.php Revert "refactor(file-transfer): replace base64 encoding with direct file transfer method across multiple database actions for improved clarity and efficiency" 2025-09-15 17:55:08 +02:00
StartDragonfly.php fix(docker): migrate database start actions from --time to -t flag 2025-11-28 11:18:12 +01:00
StartKeydb.php fix(database): replace temporary file handling with base64 encoding for Keydb and Redis configuration 2025-12-25 18:17:42 +01:00
StartMariadb.php fix(docker): migrate database start actions from --time to -t flag 2025-11-28 11:18:12 +01:00
StartMongodb.php fix(docker): migrate database start actions from --time to -t flag 2025-11-28 11:18:12 +01:00
StartMysql.php fix(docker): migrate database start actions from --time to -t flag 2025-11-28 11:18:12 +01:00
StartPostgresql.php fix(docker): migrate database start actions from --time to -t flag 2025-11-28 11:18:12 +01:00
StartRedis.php fix(database): replace temporary file handling with base64 encoding for Keydb and Redis configuration 2025-12-25 18:17:42 +01:00
StopDatabase.php fix(restart): reset restart count when resource is manually stopped 2025-12-27 15:21:19 +01:00
StopDatabaseProxy.php fix(core): stopping database is not disabling db proxy 2025-02-03 21:23:43 +01:00