Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Migration: index Sites.updated_at (#2467)

Adam Rutkowski8b5ae9baaad0
diff --git a/priv/repo/migrations/20221123104203_index_updated_at_for_sites.exs b/priv/repo/migrations/20221123104203_index_updated_at_for_sites.exs
new file mode 100644
index 0000000000..0ef7b00f7d
--- /dev/null
+++ b/priv/repo/migrations/20221123104203_index_updated_at_for_sites.exs
@@ -0,0 +1,7 @@
+defmodule Plausible.Repo.Migrations.IndexUpdatedAtForSites do
+ use Ecto.Migration
+
+ def change do
+ create index(:sites, :updated_at)
+ end
+end