2023-05-01 17:54:08 -07:00
|
|
|
-- 2023-05-02: Add a last_active column to users, updated whenever the user modifies their profile or members.
|
|
|
|
-- This is not directly exposed in the API.
|
|
|
|
-- Potential future use cases: showing total number of active users, pruning completely empty users if they don't log in?
|
|
|
|
|
2023-08-15 18:30:34 -07:00
|
|
|
-- +migrate Up
|
|
|
|
|
2023-05-01 17:54:08 -07:00
|
|
|
alter table users add column last_active timestamptz not null default now();
|
2023-08-15 18:30:34 -07:00
|
|
|
|
|
|
|
-- +migrate Down
|
|
|
|
|
|
|
|
alter table users drop column last_active;
|