diff options
author | feld <feld@feld.me> | 2021-02-02 17:11:38 +0000 |
---|---|---|
committer | feld <feld@feld.me> | 2021-02-02 17:11:38 +0000 |
commit | cd5ff7a9430a8e5886983610f1e16f966392a7ee (patch) | |
tree | 726875098c3908b5ebf455c6ea00e9a38e405733 /priv | |
parent | fdf1dfed560e27cd4e367cc2952fcb1b4e2580db (diff) | |
parent | 2012800ed1618eeafddaaaaa05df4d3e10a2afff (diff) | |
download | pleroma-cd5ff7a9430a8e5886983610f1e16f966392a7ee.tar.gz pleroma-cd5ff7a9430a8e5886983610f1e16f966392a7ee.zip |
Merge branch 'develop' into 'feature/2164-unify-api-arguments'
# Conflicts:
# CHANGELOG.md
Diffstat (limited to 'priv')
-rw-r--r-- | priv/repo/migrations/20210122151424_add_last_active_at_to_users.exs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/priv/repo/migrations/20210122151424_add_last_active_at_to_users.exs b/priv/repo/migrations/20210122151424_add_last_active_at_to_users.exs new file mode 100644 index 000000000..9671e495b --- /dev/null +++ b/priv/repo/migrations/20210122151424_add_last_active_at_to_users.exs @@ -0,0 +1,11 @@ +defmodule Pleroma.Repo.Migrations.AddLastActiveAtToUsers do + use Ecto.Migration + + def change do + alter table(:users) do + add(:last_active_at, :naive_datetime) + end + + create_if_not_exists(index(:users, [:last_active_at])) + end +end |