architex/priv/repo/migrations/20210820184601_move_timestamps_to_ints_again.exs
Pim Kunis e510c3bb6a Implement retrieving a single event over federation
Fix url encoding during homeserver signature check
2021-08-21 11:25:36 +02:00

15 lines
428 B
Elixir

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