Skip to content

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

Fixup migrations (#5312)

hq1ea364bb477dc
diff --git a/priv/repo/migrations/20240708120453_create_help_scout_credentials.exs b/priv/repo/migrations/20240708120453_create_help_scout_credentials.exs
index 6366aa3d03..c9426df801 100644
--- a/priv/repo/migrations/20240708120453_create_help_scout_credentials.exs
+++ b/priv/repo/migrations/20240708120453_create_help_scout_credentials.exs
@@ -2,8 +2,10 @@ defmodule Plausible.Repo.Migrations.CreateHelpscoutCredentials do
use Plausible
use Ecto.Migration
+ import Plausible.MigrationUtils
+
def change do
- if ee?() do
+ if enterprise_edition?() do
create table(:help_scout_credentials) do
add :access_token, :binary, null: false
diff --git a/priv/repo/migrations/20240722143005_create_helpscout_mappings.exs b/priv/repo/migrations/20240722143005_create_helpscout_mappings.exs
index c9f00ad659..88e6728662 100644
--- a/priv/repo/migrations/20240722143005_create_helpscout_mappings.exs
+++ b/priv/repo/migrations/20240722143005_create_helpscout_mappings.exs
@@ -2,8 +2,10 @@ defmodule Plausible.Repo.Migrations.CreateHelpscoutMappings do
use Plausible
use Ecto.Migration
+ import Plausible.MigrationUtils
+
def change do
- if ee?() do
+ if enterprise_edition?() do
create table(:help_scout_mappings) do
add :customer_id, :string, null: false
add :email, :string, null: false