From 7f2337758586bd5bde8309610fa00c12ed3cfa7a Mon Sep 17 00:00:00 2001 From: David Bernheisel Date: Wed, 5 Aug 2026 09:42:44 -0400 Subject: [PATCH 1/5] modern mix.exs cli preference --- mix.exs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index f17cff3..afe1396 100644 --- a/mix.exs +++ b/mix.exs @@ -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 [ From 0d08d60bdca607ad75a7cf7f251564f0b8cf4389 Mon Sep 17 00:00:00 2001 From: David Bernheisel Date: Wed, 5 Aug 2026 09:42:51 -0400 Subject: [PATCH 2/5] Fixup gitignore --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/ From edc2de7ca0db9852e7e354352a8a976d5b6c308c Mon Sep 17 00:00:00 2001 From: David Bernheisel Date: Wed, 5 Aug 2026 09:43:06 -0400 Subject: [PATCH 3/5] fixup unused clause --- lib/data_migration/live_dashboard/page.ex | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/data_migration/live_dashboard/page.ex b/lib/data_migration/live_dashboard/page.ex index 3eb6159..fcb6aad 100644 --- a/lib/data_migration/live_dashboard/page.ex +++ b/lib/data_migration/live_dashboard/page.ex @@ -533,10 +533,6 @@ defmodule DataMigration.LiveDashboard.Page do end) end - # 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 From 28769fccdb96b18c3b3ce50a6c2b34c707583080 Mon Sep 17 00:00:00 2001 From: David Bernheisel Date: Wed, 5 Aug 2026 09:47:14 -0400 Subject: [PATCH 4/5] update changelog --- CHANGELOG.md | 4 ++++ mix.exs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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/mix.exs b/mix.exs index afe1396..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] From a4256b2f858fbd2277280f2935b485bee9f9e186 Mon Sep 17 00:00:00 2001 From: David Bernheisel Date: Wed, 5 Aug 2026 09:49:54 -0400 Subject: [PATCH 5/5] Fixup dialyzer --- lib/data_migration/live_dashboard/page.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/data_migration/live_dashboard/page.ex b/lib/data_migration/live_dashboard/page.ex index fcb6aad..4218473 100644 --- a/lib/data_migration/live_dashboard/page.ex +++ b/lib/data_migration/live_dashboard/page.ex @@ -533,6 +533,8 @@ defmodule DataMigration.LiveDashboard.Page do end) end + # This is only ignored because of dialyzer also ignoring `DataMigration.Logger.add/4` + @dialyzer {:nowarn_function, update_status: 3} defp update_status(migrations, migration, status) do %{id: id, repo: repo, folder: folder} = migration