네트워크 오류 드롭 누적 표시 정리

This commit is contained in:
seo
2026-07-26 00:06:54 +09:00
parent 7f9a5d1a81
commit f2b34ebc7a
5 changed files with 206 additions and 126 deletions
+22
View File
@@ -622,6 +622,28 @@ function bootstrap_db(): void
COLLATE=utf8mb4_unicode_ci
");
$pdo->exec("
CREATE TABLE IF NOT EXISTS network_quality_totals (
iface VARCHAR(32) NOT NULL PRIMARY KEY,
rx_errors_total BIGINT UNSIGNED NOT NULL DEFAULT 0,
tx_errors_total BIGINT UNSIGNED NOT NULL DEFAULT 0,
rx_dropped_total BIGINT UNSIGNED NOT NULL DEFAULT 0,
tx_dropped_total BIGINT UNSIGNED NOT NULL DEFAULT 0,
last_rx_errors BIGINT UNSIGNED NOT NULL DEFAULT 0,
last_tx_errors BIGINT UNSIGNED NOT NULL DEFAULT 0,
last_rx_dropped BIGINT UNSIGNED NOT NULL DEFAULT 0,
last_tx_dropped BIGINT UNSIGNED NOT NULL DEFAULT 0,
created_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
updated_at DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3)
ON UPDATE CURRENT_TIMESTAMP(3)
) ENGINE=InnoDB
DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_unicode_ci
");
$pdo->exec("
CREATE TABLE IF NOT EXISTS remember_tokens (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,