From 497429dc033a3637972e654ce97833a2598e2f4b Mon Sep 17 00:00:00 2001 From: Andrew Dryga Date: Fri, 27 Jan 2023 10:50:14 -0600 Subject: [PATCH] Change default_client_allowed_ips type to string (#1387) Closes #1374 --- ...0221226143651_move_sites_fields_to_configurations.exs | 2 +- ...ge_configurations_default_client_allowed_ips_type.exs | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 apps/fz_http/priv/repo/migrations/20230127164048_change_configurations_default_client_allowed_ips_type.exs diff --git a/apps/fz_http/priv/repo/migrations/20221226143651_move_sites_fields_to_configurations.exs b/apps/fz_http/priv/repo/migrations/20221226143651_move_sites_fields_to_configurations.exs index e87743856..05436bcc3 100644 --- a/apps/fz_http/priv/repo/migrations/20221226143651_move_sites_fields_to_configurations.exs +++ b/apps/fz_http/priv/repo/migrations/20221226143651_move_sites_fields_to_configurations.exs @@ -19,7 +19,7 @@ defmodule FzHttp.Repo.Migrations.MoveSitesFieldsToConfigurations do add(:default_client_persistent_keepalive, :integer) add(:default_client_endpoint, :string) add(:default_client_dns, :string) - add(:default_client_allowed_ips, :string) + add(:default_client_allowed_ips, :text) # XXX: Note this is different than the WIREGUARD_MTU env var which # configures the server interface MTU. diff --git a/apps/fz_http/priv/repo/migrations/20230127164048_change_configurations_default_client_allowed_ips_type.exs b/apps/fz_http/priv/repo/migrations/20230127164048_change_configurations_default_client_allowed_ips_type.exs new file mode 100644 index 000000000..3d6c66435 --- /dev/null +++ b/apps/fz_http/priv/repo/migrations/20230127164048_change_configurations_default_client_allowed_ips_type.exs @@ -0,0 +1,9 @@ +defmodule FzHttp.Repo.Migrations.ChangeConfigurationsDefaultClientAllowedIpsType do + use Ecto.Migration + + def change do + alter table(:configurations) do + modify(:default_client_allowed_ips, :text) + end + end +end