2017-04-26 09:33:10 -07:00
|
|
|
defmodule Pleroma.Repo.Migrations.CreateWebsubClientSubscription do
|
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
def change do
|
2019-06-30 18:08:07 -07:00
|
|
|
create_if_not_exists table(:websub_client_subscriptions) do
|
2017-04-26 09:33:10 -07:00
|
|
|
add :topic, :string
|
|
|
|
add :secret, :string
|
2019-03-20 06:16:29 -07:00
|
|
|
add :valid_until, :naive_datetime_usec
|
2017-04-26 09:33:10 -07:00
|
|
|
add :state, :string
|
|
|
|
add :subscribers, :map
|
|
|
|
|
|
|
|
timestamps()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|