From 4c0433d32ed05cdd5fb46a16a499a28fa1a0ac0d Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Tue, 17 Jun 2025 11:32:52 -0500 Subject: [PATCH] increase packet length --- ...17163207_increase_field_lengths_for_packets.exs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 priv/repo/migrations/20250617163207_increase_field_lengths_for_packets.exs diff --git a/priv/repo/migrations/20250617163207_increase_field_lengths_for_packets.exs b/priv/repo/migrations/20250617163207_increase_field_lengths_for_packets.exs new file mode 100644 index 0000000..9a90b58 --- /dev/null +++ b/priv/repo/migrations/20250617163207_increase_field_lengths_for_packets.exs @@ -0,0 +1,14 @@ +defmodule Aprs.Repo.Migrations.IncreaseFieldLengthsForPackets do + use Ecto.Migration + + def change do + alter table(:packets) do + # Change fields that might contain long strings from varchar(255) to text + modify :information_field, :text, from: :string + modify :path, :text, from: :string + modify :manufacturer, :text, from: :string + modify :equipment_type, :text, from: :string + modify :addressee, :text, from: :string + end + end +end