MM-25394 session expired push notifications (#14732)
* new job type created that checks for expired mobile sessions and pushes notifications. * only send session expired notifications if ExtendSessionLengthWithActivity is enabled. * includes schema change: field added to Sessions table
Этот коммит содержится в:
@@ -789,6 +789,7 @@ CREATE TABLE `Sessions` (
|
||||
`DeviceId` text,
|
||||
`Roles` varchar(64) DEFAULT NULL,
|
||||
`IsOAuth` tinyint(1) DEFAULT NULL,
|
||||
`ExpiredNotify` tinyint(1) DEFAULT NULL,
|
||||
`Props` text,
|
||||
PRIMARY KEY (`Id`),
|
||||
KEY `idx_sessions_user_id` (`UserId`),
|
||||
|
||||
@@ -489,7 +489,8 @@ CREATE TABLE public.sessions (
|
||||
deviceid character varying(512),
|
||||
roles character varying(64),
|
||||
isoauth boolean,
|
||||
props character varying(1000)
|
||||
expirednotify boolean,
|
||||
props character varying(1000),
|
||||
);
|
||||
|
||||
|
||||
@@ -825,7 +826,7 @@ COPY public.schemes (id, name, displayname, description, createat, updateat, del
|
||||
-- Data for Name: sessions; Type: TABLE DATA; Schema: public; Owner: mmuser
|
||||
--
|
||||
|
||||
COPY public.sessions (id, token, createat, expiresat, lastactivityat, userid, deviceid, roles, isoauth, props) FROM stdin;
|
||||
COPY public.sessions (id, token, createat, expiresat, lastactivityat, userid, deviceid, roles, isoauth, expirednotify, props) FROM stdin;
|
||||
\.
|
||||
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user