mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix: add missing migration
This commit is contained in:
parent
320c711c13
commit
f8b5e56fdc
1 changed files with 18 additions and 0 deletions
18
PluralKit.Core/Database/Migrations/52.sql
Normal file
18
PluralKit.Core/Database/Migrations/52.sql
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
-- database version 52
|
||||
-- messages db updates
|
||||
|
||||
create index concurrently messages_by_original on messages(original_mid);
|
||||
create index concurrently messages_by_sender on messages(sender);
|
||||
|
||||
create table command_messages (
|
||||
mid bigint primary key,
|
||||
channel bigint not null,
|
||||
guild bigint not null,
|
||||
sender bigint not null,
|
||||
original_mid bigint not null
|
||||
);
|
||||
|
||||
create index concurrently command_messages_by_original on command_messages(original_mid);
|
||||
create index concurrently command_messages_by_sender on command_messages(sender);
|
||||
|
||||
update info set schema_version = 52;
|
||||
Loading…
Add table
Add a link
Reference in a new issue