defmodule GitGud.Repo.Migrations.ClearStaleLanguageStats do
@moduledoc """
The initial slice-45 compute bucketed via `git_blob_meta.detected_language`,
which is never populated by `Git.blob_meta/2` — so every existing row
is `total_bytes = 0`. Detection now runs by filename in the tree walk
itself; wipe the table so the next viewer triggers a clean recompute.
"""
use Ecto.Migration
def up do
execute("TRUNCATE TABLE git_commit_language_stats")
end
def down, do: :ok
end
502 B · text
5af55d9