You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/sysdb_migrations/internal/migrations.ts
+106-3Lines changed: 106 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -421,9 +421,9 @@ export function allMigrations(
421
421
`CREATE TABLE "${schemaName}"."queues" (
422
422
"queue_id" TEXT PRIMARY KEY DEFAULT gen_random_uuid()::TEXT,
423
423
"name" TEXT NOT NULL UNIQUE,
424
-
"concurrency" INTEGER,
425
-
"worker_concurrency" INTEGER,
426
-
"rate_limit_max" INTEGER,
424
+
"concurrency" INT4,
425
+
"worker_concurrency" INT4,
426
+
"rate_limit_max" INT4,
427
427
"rate_limit_period_sec" DOUBLE PRECISION,
428
428
"priority_enabled" BOOLEAN NOT NULL DEFAULT FALSE,
429
429
"partition_queue" BOOLEAN NOT NULL DEFAULT FALSE,
@@ -527,5 +527,108 @@ export function allMigrations(
527
527
`CREATE INDEX ${c} IF NOT EXISTS "idx_workflow_status_started_at" ON "${schemaName}"."workflow_status" ("started_at_epoch_ms") WHERE "started_at_epoch_ms" IS NOT NULL`,
528
528
],
529
529
},
530
+
{
531
+
pg: [
532
+
`DROP FUNCTION IF EXISTS "${schemaName}".enqueue_workflow(
0 commit comments