architex/priv/repo/migrations/20210715093944_change_event_timestamp_to_integer.exs

11 lines
253 B
Elixir
Raw Normal View History

2021-07-17 15:38:20 +00:00
defmodule MatrixServer.Repo.Migrations.ChangeEventTimestampToInteger do
use Ecto.Migration
def change do
alter table(:events) do
remove :timestamp, :string, null: false
add :origin_server_ts, :integer, null: false
end
end
end