Change default_client_allowed_ips type to string (#1387)

Closes #1374
This commit is contained in:
Andrew Dryga
2023-01-27 10:50:14 -06:00
committed by GitHub
parent e17c0ac6b4
commit 497429dc03
2 changed files with 10 additions and 1 deletions

View File

@@ -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.

View File

@@ -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