pronounss/scripts/migrate/016_user_activity.sql

12 lines
433 B
MySQL
Raw Permalink Normal View History

2023-05-02 02:54:08 +02: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-16 03:30:34 +02:00
-- +migrate Up
2023-05-02 02:54:08 +02:00
alter table users add column last_active timestamptz not null default now();
2023-08-16 03:30:34 +02:00
-- +migrate Down
alter table users drop column last_active;