From f8b5e56fdce10e6eef67921a2fe156d7a576b555 Mon Sep 17 00:00:00 2001 From: alyssa Date: Sat, 21 Jun 2025 21:14:23 +0000 Subject: [PATCH] fix: add missing migration --- PluralKit.Core/Database/Migrations/52.sql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 PluralKit.Core/Database/Migrations/52.sql diff --git a/PluralKit.Core/Database/Migrations/52.sql b/PluralKit.Core/Database/Migrations/52.sql new file mode 100644 index 00000000..db6e7541 --- /dev/null +++ b/PluralKit.Core/Database/Migrations/52.sql @@ -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;