diff --git a/.gitignore b/.gitignore index 0d3bb42..42c6f64 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,7 @@ erl_crash.dump *.ez # Ignore package tarball (built via "mix hex.build"). -data_migration_live_dashboard-*.tar +data_migration-*.tar # Temporary files, for example, from tests. /tmp/ diff --git a/CHANGELOG.md b/CHANGELOG.md index c524bdf..c038ae0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.1.2 (2026-08-05) + +- Fixup Elixir 1.20 type warning + ## 0.1.1 (2026-07-16) - Fix concurrent LiveView accumulating duplicate migrations over time. diff --git a/lib/data_migration/live_dashboard/page.ex b/lib/data_migration/live_dashboard/page.ex index 3eb6159..4218473 100644 --- a/lib/data_migration/live_dashboard/page.ex +++ b/lib/data_migration/live_dashboard/page.ex @@ -535,8 +535,6 @@ defmodule DataMigration.LiveDashboard.Page do # This is only ignored because of dialyzer also ignoring `DataMigration.Logger.add/4` @dialyzer {:nowarn_function, update_status: 3} - defp update_status(migrations, nil, _status), do: {nil, migrations} - defp update_status(migrations, migration, status) do %{id: id, repo: repo, folder: folder} = migration diff --git a/mix.exs b/mix.exs index f17cff3..bd79b5f 100644 --- a/mix.exs +++ b/mix.exs @@ -1,6 +1,6 @@ defmodule DataMigration.MixProject do use Mix.Project - @version "0.1.1" + @version "0.1.2" @source_url "https://github.com/tv-labs/data-migration" @adapters ~w[pg myxql tds sqlite] @@ -27,7 +27,6 @@ defmodule DataMigration.MixProject do extras: ["CHANGELOG.md"] ], deps: deps(), - preferred_cli_env: ["test.all": :test, "test.adapters": :test], aliases: aliases(), dialyzer: [ plt_add_apps: [:ex_unit, :mix], @@ -36,6 +35,10 @@ defmodule DataMigration.MixProject do ] end + def cli do + [preferred_envs: ["test.all": :test, "test.adapters": :test]] + end + # Run "mix help compile.app" to learn about applications. def application do [