Rewrite identity and access management
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
9
pkg/coredata/migrations/20251205T120000Z.sql
Normal file
9
pkg/coredata/migrations/20251205T120000Z.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
CREATE TYPE session_expire_reason AS ENUM (
|
||||
'idle_timeout',
|
||||
'revoked',
|
||||
'closed'
|
||||
);
|
||||
|
||||
ALTER TABLE sessions ADD COLUMN expire_reason session_expire_reason;
|
||||
|
||||
UPDATE sessions SET expire_reason = 'idle_timeout' WHERE expired_at < NOW();
|
||||
Reference in New Issue
Block a user