feat: split ignores into 'ignore messages' and 'ignore entities'
This commit is contained in:
parent
d48ab7e16e
commit
0cac964aa6
32 changed files with 730 additions and 488 deletions
|
|
@ -0,0 +1,3 @@
|
|||
update guilds set channels = (channels || messages) - 'IgnoredRoles';
|
||||
|
||||
alter table guilds drop column messages;
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
alter table guilds
|
||||
add column messages jsonb not null default '{}';
|
||||
|
||||
-- Extract the current message-related configuration options into the new "messages" column
|
||||
-- noinspection SqlWithoutWhere
|
||||
update guilds
|
||||
set messages = jsonb_build_object('IgnoredUsers', channels['IgnoredUsers'], 'IgnoredChannels',
|
||||
channels['IgnoredChannels'], 'IgnoredUsersPerChannel',
|
||||
channels['IgnoredUsersPerChannel']);
|
||||
|
||||
-- We don't update the "channels" column as it will be cleared out automatically over time,
|
||||
-- as channel configurations are updated by the bot
|
||||
Loading…
Add table
Add a link
Reference in a new issue