Pim Kunis
9e02d5b95c
Serialize and save room state in database Get room state from database when creating a room server
10 lines
273 B
Elixir
10 lines
273 B
Elixir
defmodule MatrixServer.Repo.Migrations.ChangeRoomStateToArray do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
alter table(:rooms) do
|
|
remove :state, :map, default: %{}, null: false
|
|
add :state, {:array, {:array, :string}}, default: [], null: false
|
|
end
|
|
end
|
|
end
|