Add function to query whether server participates in a room
Move from integer timestamps to datetimes
This commit is contained in:
parent
5d75244bc0
commit
02edff90e7
7 changed files with 65 additions and 20 deletions
|
@ -0,0 +1,15 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue