Skip to content

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

Add migration for table storing HelpScout credentials (#4346)

Adrian Gruntkowskiff778436c4d3
diff --git a/priv/repo/migrations/20240708120453_create_help_scout_credentials.exs b/priv/repo/migrations/20240708120453_create_help_scout_credentials.exs
new file mode 100644
index 0000000000..6366aa3d03
--- /dev/null
+++ b/priv/repo/migrations/20240708120453_create_help_scout_credentials.exs
@@ -0,0 +1,14 @@
+defmodule Plausible.Repo.Migrations.CreateHelpscoutCredentials do
+ use Plausible
+ use Ecto.Migration
+
+ def change do
+ if ee?() do
+ create table(:help_scout_credentials) do
+ add :access_token, :binary, null: false
+
+ timestamps()
+ end
+ end
+ end
+end