From c9d43b8fe11fee72ebe6238e80cd77f523d7729a Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Tue, 18 Oct 2022 10:29:55 +0700 Subject: [PATCH] Allowed `constraintName` in schema column spec refs https://github.com/TryGhost/Ghost/commit/0ba3d6df49dea823e3632be90cf00f6d10c6e914 - this is used to indicate the name of the foreign key constraint and so we should let it through the schema checks --- ghost/core/test/unit/server/data/schema/schema.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ghost/core/test/unit/server/data/schema/schema.test.js b/ghost/core/test/unit/server/data/schema/schema.test.js index 4925373acf..c30ddcbea3 100644 --- a/ghost/core/test/unit/server/data/schema/schema.test.js +++ b/ghost/core/test/unit/server/data/schema/schema.test.js @@ -29,6 +29,7 @@ const VALID_KEYS = { 'validations', 'defaultTo', 'references', + 'constraintName', 'cascadeDelete', 'setNullDelete', 'index'