mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
5 lines
360 B
MySQL
5 lines
360 B
MySQL
|
|
ALTER TABLE "issue_thread_interactions" ADD COLUMN IF NOT EXISTS "idempotency_key" text;--> statement-breakpoint
|
||
|
|
CREATE UNIQUE INDEX IF NOT EXISTS "issue_thread_interactions_company_issue_idempotency_uq"
|
||
|
|
ON "issue_thread_interactions" USING btree ("company_id","issue_id","idempotency_key")
|
||
|
|
WHERE "issue_thread_interactions"."idempotency_key" IS NOT NULL;
|