fix: choose buckets

This commit is contained in:
2026-04-09 02:23:11 +04:00
parent db9c63a096
commit 27d8630611
7 changed files with 60 additions and 23 deletions
+4
View File
@@ -155,6 +155,10 @@ export async function migrate(sql: any) {
// Display mode: 'compact' = one-line rows with click-to-expand details,
// 'expanded' = full detail card always visible (default).
await sql`ALTER TABLE status_pages ADD COLUMN IF NOT EXISTS display_mode TEXT NOT NULL DEFAULT 'expanded'`;
// Heartbeat bar settings: granularity + how many bars. Independent from
// default_window (which still drives the primary uptime % + multi-window cells).
await sql`ALTER TABLE status_pages ADD COLUMN IF NOT EXISTS bar_frequency TEXT NOT NULL DEFAULT 'daily'`;
await sql`ALTER TABLE status_pages ADD COLUMN IF NOT EXISTS bar_count INTEGER NOT NULL DEFAULT 90`;
await sql`
CREATE TABLE IF NOT EXISTS status_page_groups (