8fc88ffc14
Build & Push / Pipeline Tests (push) Failing after 59s
Build & Push / Build & Push Docker Image (push) Has been skipped
Test / Type Check (all packages) (push) Failing after 51s
Test / API Unit Tests (push) Has been skipped
Test / Homepage Unit Tests (push) Has been skipped
Test / Carplace Unit Tests (push) Has been skipped
Test / Admin Unit Tests (push) Has been skipped
Test / Dashboard Unit Tests (push) Has been skipped
Test / API Integration Tests (push) Has been skipped
9 lines
534 B
SQL
9 lines
534 B
SQL
-- Phase 1: outbox leasing for multi-worker safe dispatch
|
|
ALTER TABLE "notification_outbox" ADD COLUMN IF NOT EXISTS "locked_at" TIMESTAMP(3);
|
|
ALTER TABLE "notification_outbox" ADD COLUMN IF NOT EXISTS "locked_by" TEXT;
|
|
ALTER TABLE "notification_outbox" ADD COLUMN IF NOT EXISTS "attempts" INTEGER NOT NULL DEFAULT 0;
|
|
ALTER TABLE "notification_outbox" ADD COLUMN IF NOT EXISTS "available_at" TIMESTAMP(3);
|
|
|
|
CREATE INDEX IF NOT EXISTS "notification_outbox_status_available_at_idx"
|
|
ON "notification_outbox"("status", "available_at");
|