diff --git a/sql/migrations/20240812153737_v0.42.1.sql b/sql/migrations/20240812153737_v0.42.1.sql new file mode 100644 index 000000000..8f8cbbcaf --- /dev/null +++ b/sql/migrations/20240812153737_v0.42.1.sql @@ -0,0 +1,7 @@ +-- atlas:txmode none + +ALTER TABLE "QueueItem" ADD CONSTRAINT "QueueItem_priority_check" CHECK ("priority" >= 1 AND "priority" <= 4); + +DROP INDEX CONCURRENTLY IF EXISTS "QueueItem_isQueued_priority_tenantId_queue_id_idx"; + +CREATE INDEX CONCURRENTLY IF NOT EXISTS "QueueItem_isQueued_priority_tenantId_queue_id_idx_2" ON "QueueItem" ("isQueued", "tenantId", "queue", "priority" DESC, "id"); diff --git a/sql/migrations/atlas.sum b/sql/migrations/atlas.sum index 842afb1e9..4df357a98 100644 --- a/sql/migrations/atlas.sum +++ b/sql/migrations/atlas.sum @@ -1,4 +1,4 @@ -h1:SCesG9pwaIMrH4EijJ5Q2Uc0gvwS18RxoYO5KTsC4xw= +h1:wAFKm7rbprHz28Bc8uTDP6nbnjhMbZeAWPtKZpSteaY= 20240115180414_init.sql h1:Ef3ZyjAHkmJPdGF/dEWCahbwgcg6uGJKnDxW2JCRi2k= 20240122014727_v0_6_0.sql h1:o/LdlteAeFgoHJ3e/M4Xnghqt9826IE/Y/h0q95Acuo= 20240126235456_v0_7_0.sql h1:KiVzt/hXgQ6esbdC6OMJOOWuYEXmy1yeCpmsVAHTFKs= @@ -44,3 +44,4 @@ h1:SCesG9pwaIMrH4EijJ5Q2Uc0gvwS18RxoYO5KTsC4xw= 20240726160629_v0.40.0.sql h1:XmnKVQ/AMUTPnL1SZPwLhmY0KR4sT9B6+uhVbElYx34= 20240728042317_v0.41.0.sql h1:kgjgRXSRGMCXAOUweAwlTFd/uWtx7a24gLdJEfbK1rM= 20240809131000_v0.42.0.sql h1:7dk24FIvasOG/vmTI8Oz23C4e6+k3IS9WG5eu2mX/Aw= +20240812153737_v0.42.1.sql h1:dUADhy9vhbGwdrn+h2KqshcdfSUvSUOlF190Sy6xGhw=