diagnostics: Add DEFAULT 0 to info_count column in worktree_diagnostic_summaries

This commit is contained in:
Oliver Azevedo Barnes 2026-04-23 19:44:26 +01:00
parent c4d97f239f
commit bf650d2a78
2 changed files with 2 additions and 2 deletions

View file

@ -158,7 +158,7 @@ CREATE TABLE "worktree_diagnostic_summaries" (
"language_server_id" INTEGER NOT NULL,
"error_count" INTEGER NOT NULL,
"warning_count" INTEGER NOT NULL,
"info_count" INTEGER NOT NULL,
"info_count" INTEGER NOT NULL DEFAULT 0,
PRIMARY KEY (project_id, worktree_id, path),
FOREIGN KEY (project_id, worktree_id) REFERENCES worktrees (project_id, id) ON DELETE CASCADE
);

View file

@ -445,7 +445,7 @@ CREATE TABLE public.worktree_diagnostic_summaries (
language_server_id bigint NOT NULL,
error_count integer NOT NULL,
warning_count integer NOT NULL,
info_count integer NOT NULL
info_count integer NOT NULL DEFAULT 0
);
CREATE TABLE public.worktree_entries (