PluralKit/crates/migrate/data/migrations/52.sql
alyssa 47c5990218 chore: move migrations to rust
also adds some basic test seed data
2025-07-24 01:36:04 +00:00

21 lines
634 B
SQL

-- database version 52
-- messages db updates
create index messages_by_original on messages(original_mid);
create index messages_by_sender on messages(sender);
-- remove old table from database version 11
alter table command_messages rename to command_messages_old;
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 command_messages_by_original on command_messages(original_mid);
create index command_messages_by_sender on command_messages(sender);
update info set schema_version = 52;