From 1a93ca19753a2f9f1caee0e983ce98879af42c72 Mon Sep 17 00:00:00 2001 From: Kern Attila GERMAIN <5556461+KernAttila@users.noreply.github.com> Date: Sat, 26 Aug 2023 16:28:16 +0200 Subject: [PATCH] revert: no need to do this anymore, cuebot handles calculation before inserting proc --- .../conf/ddl/postgres/migrations/V1__Initial_schema.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuebot/src/main/resources/conf/ddl/postgres/migrations/V1__Initial_schema.sql b/cuebot/src/main/resources/conf/ddl/postgres/migrations/V1__Initial_schema.sql index c24f239ed..c9d77140b 100644 --- a/cuebot/src/main/resources/conf/ddl/postgres/migrations/V1__Initial_schema.sql +++ b/cuebot/src/main/resources/conf/ddl/postgres/migrations/V1__Initial_schema.sql @@ -2661,7 +2661,7 @@ EXECUTE PROCEDURE trigger__before_insert_folder(); CREATE FUNCTION trigger__before_insert_proc() RETURNS TRIGGER AS $body$ BEGIN - IF NEW.int_cores_reserved < 0 THEN + IF NEW.int_cores_reserved <= 0 THEN RAISE EXCEPTION 'failed to allocate proc, tried to allocate 0 cores'; END IF; RETURN NEW;