[MM-36472] Fix inconsistencies in Roles columns (#18390)
* Fix inconsistencies in Roles columns * Add new migrations
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
305e4793c3
Коммит
177680f08c
@@ -71,7 +71,7 @@ CREATE TABLE `ChannelMemberHistory` (
|
||||
CREATE TABLE `ChannelMembers` (
|
||||
`ChannelId` varchar(26) NOT NULL,
|
||||
`UserId` varchar(26) NOT NULL,
|
||||
`Roles` varchar(64) DEFAULT NULL,
|
||||
`Roles` text DEFAULT NULL,
|
||||
`LastViewedAt` bigint(20) DEFAULT NULL,
|
||||
`MsgCount` bigint(20) DEFAULT NULL,
|
||||
`MentionCount` bigint(20) DEFAULT NULL,
|
||||
@@ -767,7 +767,7 @@ CREATE TABLE `Sessions` (
|
||||
`LastActivityAt` bigint(20) DEFAULT NULL,
|
||||
`UserId` varchar(26) DEFAULT NULL,
|
||||
`DeviceId` text,
|
||||
`Roles` varchar(64) DEFAULT NULL,
|
||||
`Roles` text DEFAULT NULL,
|
||||
`IsOAuth` tinyint(1) DEFAULT NULL,
|
||||
`ExpiredNotify` tinyint(1) DEFAULT NULL,
|
||||
`Props` json DEFAULT NULL,
|
||||
@@ -937,7 +937,7 @@ CREATE TABLE `Systems` (
|
||||
CREATE TABLE `TeamMembers` (
|
||||
`TeamId` varchar(26) NOT NULL,
|
||||
`UserId` varchar(26) NOT NULL,
|
||||
`Roles` varchar(64) DEFAULT NULL,
|
||||
`Roles` text DEFAULT NULL,
|
||||
`DeleteAt` bigint(20) DEFAULT NULL,
|
||||
`SchemeUser` tinyint(4) DEFAULT NULL,
|
||||
`SchemeAdmin` tinyint(4) DEFAULT NULL,
|
||||
|
||||
@@ -73,7 +73,7 @@ ALTER TABLE public.channelmemberhistory OWNER TO mmuser;
|
||||
CREATE TABLE public.channelmembers (
|
||||
channelid character varying(26) NOT NULL,
|
||||
userid character varying(26) NOT NULL,
|
||||
roles character varying(64),
|
||||
roles character varying(256),
|
||||
lastviewedat bigint,
|
||||
msgcount bigint,
|
||||
mentioncount bigint,
|
||||
@@ -675,7 +675,7 @@ CREATE TABLE public.sessions (
|
||||
lastactivityat bigint,
|
||||
userid character varying(26),
|
||||
deviceid character varying(512),
|
||||
roles character varying(64),
|
||||
roles character varying(256),
|
||||
isoauth boolean,
|
||||
expirednotify boolean,
|
||||
props jsonb
|
||||
@@ -825,7 +825,7 @@ ALTER TABLE public.systems OWNER TO mmuser;
|
||||
CREATE TABLE public.teammembers (
|
||||
teamid character varying(26) NOT NULL,
|
||||
userid character varying(26) NOT NULL,
|
||||
roles character varying(64),
|
||||
roles character varying(256),
|
||||
deleteat bigint,
|
||||
schemeuser boolean,
|
||||
schemeadmin boolean,
|
||||
|
||||
Ссылка в новой задаче
Block a user