Initial open source release
This commit is contained in:
commit
74992e893f
377 changed files with 118084 additions and 0 deletions
8
deploy/migrations/0060_user_last_seen.up.sql
Normal file
8
deploy/migrations/0060_user_last_seen.up.sql
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
-- 0060_user_last_seen: persist exact last seen timestamps for UserStatusOffline.was_online.
|
||||
|
||||
ALTER TABLE users
|
||||
ADD COLUMN IF NOT EXISTS last_seen_at BIGINT NOT NULL DEFAULT 0;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS users_last_seen_idx
|
||||
ON users (last_seen_at DESC)
|
||||
WHERE last_seen_at > 0;
|
||||
Loading…
Add table
Add a link
Reference in a new issue