Incoming webhooks return no message id, so nothing can be removed later. Settings now take a bot token plus channel, chat.postMessage records channel and timestamp on the run, and the history carries a delete button per message. The webhook stays as a fallback and is marked as not deletable.
3 lines
229 B
SQL
3 lines
229 B
SQL
ALTER TABLE "report_run" ADD COLUMN "channel" text;--> statement-breakpoint
|
|
ALTER TABLE "report_run" ADD COLUMN "message_ts" text;--> statement-breakpoint
|
|
ALTER TABLE "report_run" ADD COLUMN "deleted_at" timestamp with time zone; |