summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorAlex S <alex.strizhakov@gmail.com>2019-04-10 18:06:54 +0700
committerAlex S <alex.strizhakov@gmail.com>2019-04-10 18:06:54 +0700
commitfe511a6c653f24f95dd3bed5941724e3d0155f3a (patch)
tree097971af07615b9965329d595d9cb00c7ef2d5f8 /priv
parentfe13a1d78c13fbe7b3027d442a6f6906440e5acc (diff)
parente5d553aa45ffa218b0695d7976f012bfc1dcbafe (diff)
downloadpleroma-fe511a6c653f24f95dd3bed5941724e3d0155f3a.tar.gz
pleroma-fe511a6c653f24f95dd3bed5941724e3d0155f3a.zip
Merge branch 'develop' into feature/788-separate-email-addresses
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20190404050946_add_fields_to_user_invite_tokens.exs12
-rw-r--r--priv/repo/migrations/20190405160700_add_index_on_subscribers.exs8
2 files changed, 20 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
diff --git a/priv/repo/migrations/20190405160700_add_index_on_subscribers.exs b/priv/repo/migrations/20190405160700_add_index_on_subscribers.exs
new file mode 100644
index 000000000..232f75c92
--- /dev/null
+++ b/priv/repo/migrations/20190405160700_add_index_on_subscribers.exs
@@ -0,0 +1,8 @@
+defmodule Pleroma.Repo.Migrations.AddIndexOnSubscribers do
+ use Ecto.Migration
+
+ @disable_ddl_transaction true
+ def change do
+ create index(:users, ["(info->'subscribers')"], name: :users_subscribers_index, using: :gin, concurrently: true)
+ end
+end