Skip to content

Commit

Permalink
fix: alter database columns' types from varchar to text
Browse files Browse the repository at this point in the history
  • Loading branch information
w3b6x9 committed Aug 10, 2023
1 parent ba2fb8b commit b9b0088
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Realtime.MixProject do
def project do
[
app: :realtime,
version: "2.19.1",
version: "2.19.2",
elixir: "~> 1.14.0",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
defmodule Realtime.Repo.Migrations.AlterTenantsTableColumnsToText do
use Ecto.Migration

def change do
alter table(:tenants) do
modify :name, :text
modify :external_id, :text
modify :jwt_secret, :text
modify :postgres_cdc_default, :text, default: "postgres_cdc_rls"
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
defmodule Realtime.Repo.Migrations.AlterExtensionsTableColumnsToText do
use Ecto.Migration

def change do
alter table(:extensions) do
modify :type, :text
modify :tenant_external_id, :text
end
end
end

0 comments on commit b9b0088

Please sign in to comment.