mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 00:07:55 +00:00
Various additional tweaks/additions to groups
This commit is contained in:
parent
9e251352c7
commit
1bb5d203df
12 changed files with 109 additions and 25 deletions
|
|
@ -7,12 +7,14 @@ create table groups (
|
|||
system int not null references systems(id) on delete cascade,
|
||||
|
||||
name text not null,
|
||||
display_name text,
|
||||
description text,
|
||||
icon text,
|
||||
|
||||
-- Description columns follow the same pattern as usual: 1 = public, 2 = private
|
||||
description_privacy integer check (description_privacy in (1, 2)) not null default 1,
|
||||
icon_privacy integer check (icon_privacy in (1, 2)) not null default 1,
|
||||
list_privacy integer check (list_privacy in (1, 2)) not null default 1,
|
||||
visibility integer check (visibility in (1, 2)) not null default 1,
|
||||
|
||||
created timestamp with time zone not null default (current_timestamp at time zone 'utc')
|
||||
|
|
@ -24,4 +26,6 @@ create table group_members (
|
|||
primary key (group_id, member_id)
|
||||
);
|
||||
|
||||
alter table systems add column group_list_privacy integer check (group_list_privacy in (1, 2)) not null default systems.member_list_privacy;
|
||||
|
||||
update info set schema_version = 9;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue