defmodule FarmbotCore.Asset.Repo.Migrations.ForceResyncPoints do
  use Ecto.Migration

  alias FarmbotCore.Asset.{Repo, Point}

  def change do
    for %{id: id} = point when is_integer(id) <- Repo.all(Point) do
      Repo.delete!(point)
    end
  end
end

defmodule FarmbotCore.Asset.Repo.Migrations.ForceResyncPoints do
  use Ecto.Migration

  alias FarmbotCore.Asset.{Repo, Point}

  def change do
    execute("TRUNCATE TABLE points;")
  end
end

Use raw SQL to prevent syntax errors in legacy migration
Use raw SQL to prevent syntax errors in legacy migration

FarmBot/farmbot_os,FarmBot/farmbot_os,FarmBot/farmbot_os,FarmBot/farmbot_os