chore(auto): task completed - unknown
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
-- Migration 0010: Add message_reactions and message_edits tables
|
||||
-- Generated from schema: pgReactionsTable, pgMessageEditsTable
|
||||
|
||||
CREATE TABLE IF NOT EXISTS "message_reactions" (
|
||||
"id" text PRIMARY KEY,
|
||||
"message_id" text NOT NULL,
|
||||
"channel_id" text NOT NULL,
|
||||
"guild_id" text NOT NULL,
|
||||
"user_id" text NOT NULL,
|
||||
"username" text NOT NULL,
|
||||
"emoji" text NOT NULL,
|
||||
"emoji_id" text,
|
||||
"animated" boolean NOT NULL DEFAULT false,
|
||||
"reaction_type" text NOT NULL CHECK ("reaction_type" IN ('add', 'remove')),
|
||||
"created_at" bigint NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS "idx_reactions_message_id" ON "message_reactions" ("message_id");
|
||||
CREATE INDEX IF NOT EXISTS "idx_reactions_user_id" ON "message_reactions" ("user_id");
|
||||
CREATE INDEX IF NOT EXISTS "idx_reactions_guild_created" ON "message_reactions" ("guild_id", "created_at");
|
||||
|
||||
CREATE TABLE IF NOT EXISTS "message_edits" (
|
||||
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
"message_id" text NOT NULL,
|
||||
"old_content" text NOT NULL,
|
||||
"edited_at" bigint NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS "idx_message_edits_message_id" ON "message_edits" ("message_id");
|
||||
CREATE INDEX IF NOT EXISTS "idx_message_edits_edited_at" ON "message_edits" ("edited_at");
|
||||
@@ -71,6 +71,13 @@
|
||||
"when": 1781316000000,
|
||||
"tag": "0009_add_reply_forward_crosspost",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 10,
|
||||
"version": "7",
|
||||
"when": 1781390000000,
|
||||
"tag": "0010_add_reactions_and_edit_history",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user