Fix migration that was not working

cc @macobo
This commit is contained in:
Adam Rutkowski 2025-04-08 11:11:41 +02:00
parent eb0fdffcaf
commit 54c1737901
1 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,9 @@ defmodule Plausible.Repo.Migrations.SiteLegacyTimeOnPageCutoff do
# On self-hosted, new time-on-page will be populated during first deploy.
execute(
fn ->
repo().query!("UPDATE sites SET legacy_time_on_page_cutoff = ?", [Date.utc_today()])
repo().query!("UPDATE sites SET legacy_time_on_page_cutoff = $1::date", [
Date.utc_today()
])
end,
&pass/0
)