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

11 lines
295 B
Elixir
Raw Normal View History

2021-07-17 15:38:20 +00:00
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