diff options
author | lambda <lain@soykaf.club> | 2019-04-10 10:10:08 +0000 |
---|---|---|
committer | lambda <lain@soykaf.club> | 2019-04-10 10:10:08 +0000 |
commit | e5d553aa45ffa218b0695d7976f012bfc1dcbafe (patch) | |
tree | f0f48276f13879fbf7c0355190e511112e473e2b /priv | |
parent | 6504b43f96860d1911ed9a17d1c487a6e8ac93ba (diff) | |
parent | fee50636d07c54328ececfe8805c658e3bb80cc6 (diff) | |
download | pleroma-e5d553aa45ffa218b0695d7976f012bfc1dcbafe.tar.gz pleroma-e5d553aa45ffa218b0695d7976f012bfc1dcbafe.zip |
Merge branch 'feature/767-multiple-use-invite-token' into 'develop'
Feature/767 multiple use invite token
See merge request pleroma/pleroma!1032
Diffstat (limited to 'priv')
-rw-r--r-- | priv/repo/migrations/20190404050946_add_fields_to_user_invite_tokens.exs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/priv/repo/migrations/20190404050946_add_fields_to_user_invite_tokens.exs b/priv/repo/migrations/20190404050946_add_fields_to_user_invite_tokens.exs new file mode 100644 index 000000000..211a14135 --- /dev/null +++ b/priv/repo/migrations/20190404050946_add_fields_to_user_invite_tokens.exs @@ -0,0 +1,12 @@ +defmodule Pleroma.Repo.Migrations.AddFieldsToUserInviteTokens do + use Ecto.Migration + + def change do + alter table(:user_invite_tokens) do + add(:expires_at, :date) + add(:uses, :integer, default: 0) + add(:max_use, :integer) + add(:invite_type, :string, default: "one_time") + end + end +end |