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 e91bb5d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
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 e91bb5d

Please sign in to comment.