mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-01-25 10:08:42 -06:00
* wip: rip prisma * wip * wip * fix: lint * wip * wip * gen * wip * wip * fix trigger * hide overview * revert db changes * feat: wrap up frontend changes and perf * chore: generate * chore: frontend build * fix: workflow transformer * fix: avoid race conditions on simultaneous parent completions * fix: 2025 started * feat: toast for replay/cancel * fix: toast --------- Co-authored-by: Alexander Belanger <alexander@hatchet.run>
13 lines
606 B
SQL
13 lines
606 B
SQL
-- NOTE: this is a SQL script file that contains the constraints for the database
|
|
-- it is needed because prisma does not support constraints yet
|
|
|
|
-- Modify "QueueItem" table
|
|
ALTER TABLE "QueueItem" ADD CONSTRAINT "QueueItem_priority_check" CHECK ("priority" >= 1 AND "priority" <= 4);
|
|
|
|
-- Modify "InternalQueueItem" table
|
|
ALTER TABLE "InternalQueueItem" ADD CONSTRAINT "InternalQueueItem_priority_check" CHECK ("priority" >= 1 AND "priority" <= 4);
|
|
|
|
CREATE INDEX CONCURRENTLY IF NOT EXISTS "StepRun_jobRunId_status_tenantId_idx"
|
|
ON "StepRun" ("jobRunId", "status", "tenantId")
|
|
WHERE "status" = 'PENDING';
|