mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-03 20:40:00 -05:00
Combines the following repositories into one: https://github.com/mattermost/mattermost-server https://github.com/mattermost/mattermost-webapp https://github.com/mattermost/focalboard https://github.com/mattermost/mattermost-plugin-playbooks
18 lines
569 B
SQL
18 lines
569 B
SQL
CREATE TABLE IF NOT EXISTS usergroups (
|
|
id VARCHAR(26) PRIMARY KEY,
|
|
name VARCHAR(64),
|
|
displayname VARCHAR(128),
|
|
description VARCHAR(1024),
|
|
source VARCHAR(64),
|
|
remoteid VARCHAR(48),
|
|
createat bigint,
|
|
updateat bigint,
|
|
deleteat bigint,
|
|
allowreference bool,
|
|
UNIQUE(name),
|
|
UNIQUE(source, remoteid)
|
|
);
|
|
|
|
ALTER TABLE usergroups ADD COLUMN IF NOT EXISTS allowreference bool;
|
|
CREATE INDEX IF NOT EXISTS idx_usergroups_remote_id ON usergroups (remoteid);
|
|
CREATE INDEX IF NOT EXISTS idx_usergroups_delete_at ON usergroups (deleteat);
|