summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authormarcin mikołajczak <me@mkljczk.pl>2021-12-26 02:35:17 +0000
committerAlex Gleason <alex@alexgleason.me>2021-12-26 02:35:17 +0000
commitde006443f0bc8cfb3ad28b29b2d8ea9581e760b6 (patch)
treef26e66d8a2c7baeb67803245c1eaa9fa0f9f9790 /priv
parent73609211a425922a5068d3912a36b82abe24e12c (diff)
MastoAPI: Profile directory
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20211222165256_add_last_status_at_to_users.exs11
-rw-r--r--priv/repo/migrations/20211225154802_add_is_discoverable_index_to_users.exs7
2 files changed, 18 insertions, 0 deletions
diff --git a/priv/repo/migrations/20211222165256_add_last_status_at_to_users.exs b/priv/repo/migrations/20211222165256_add_last_status_at_to_users.exs
new file mode 100644
index 000000000..906178216
--- /dev/null
+++ b/priv/repo/migrations/20211222165256_add_last_status_at_to_users.exs
@@ -0,0 +1,11 @@
+defmodule Pleroma.Repo.Migrations.AddLastStatusAtToUsers do
+ use Ecto.Migration
+
+ def change do
+ alter table(:users) do
+ add(:last_status_at, :naive_datetime)
+ end
+
+ create_if_not_exists(index(:users, [:last_status_at]))
+ end
+end
diff --git a/priv/repo/migrations/20211225154802_add_is_discoverable_index_to_users.exs b/priv/repo/migrations/20211225154802_add_is_discoverable_index_to_users.exs
new file mode 100644
index 000000000..9f8f52b65
--- /dev/null
+++ b/priv/repo/migrations/20211225154802_add_is_discoverable_index_to_users.exs
@@ -0,0 +1,7 @@
+defmodule Pleroma.Repo.Migrations.AddIsDiscoverableIndexToUsers do
+ use Ecto.Migration
+
+ def change do
+ create(index(:users, [:is_discoverable]))
+ end
+end