architex/priv/repo/migrations/20210714150725_change_event_content_to_json.exs

10 lines
295 B
Elixir

defmodule MatrixServer.Repo.Migrations.ChangeEventContentToJson do
use Ecto.Migration
def change do
execute(
"alter table events alter column content type jsonb using (content::jsonb);",
"alter table events alter column content type character varying(255);"
)
end
end