architex/priv/repo/migrations/20210816144214_change_timestamps_to_datetime.exs

16 lines
430 B
Elixir
Raw Normal View History

defmodule MatrixServer.Repo.Migrations.ChangeTimestampsToDatetime do
use Ecto.Migration
def change do
alter table(:events) do
remove :origin_server_ts, :integer, null: false
add :origin_server_ts, :utc_datetime_usec, null: false
end
alter table(:server_key_info) do
remove :valid_until, :bigint, default: 0, null: false
add :valid_until, :utc_datetime_usec, null: false
end
end
end