From 1fd4861e9755558280948b2f5f5db9cded9d0b88 Mon Sep 17 00:00:00 2001 From: Naz Date: Fri, 22 Sep 2023 21:58:14 +0800 Subject: [PATCH] Cleaned up fixtures from latest collections entry refs https://github.com/TryGhost/Arch/issues/95 refs https://github.com/TryGhost/Ghost/commit/45c1a82909018d1a1c69c1cfa374c665cedd6dad - Latest collection has become "dynamic" in the referenced commit, this means we don't need stored entries in the database. --- .../core/server/data/schema/fixtures/fixtures.json | 14 -------------- .../test/unit/server/data/schema/integrity.test.js | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/ghost/core/core/server/data/schema/fixtures/fixtures.json b/ghost/core/core/server/data/schema/fixtures/fixtures.json index 487b1e145b..c9478e628b 100644 --- a/ghost/core/core/server/data/schema/fixtures/fixtures.json +++ b/ghost/core/core/server/data/schema/fixtures/fixtures.json @@ -975,20 +975,6 @@ "coming-soon": ["News"] } }, - { - "from": { - "model": "Collection", - "match": "slug", - "relation": "posts" - }, - "to": { - "model": "Post", - "match": "slug" - }, - "entries": { - "latest": ["coming-soon"] - } - }, { "from": { "model": "User", diff --git a/ghost/core/test/unit/server/data/schema/integrity.test.js b/ghost/core/test/unit/server/data/schema/integrity.test.js index b7f90c4963..8fb2709d9e 100644 --- a/ghost/core/test/unit/server/data/schema/integrity.test.js +++ b/ghost/core/test/unit/server/data/schema/integrity.test.js @@ -36,7 +36,7 @@ const validateRouteSettings = require('../../../../../core/server/services/route describe('DB version integrity', function () { // Only these variables should need updating const currentSchemaHash = '38fa7cfe8d74659ec75a5963b13cb4eb'; - const currentFixturesHash = '6e8d5e89044320656de4900dd0529e68'; + const currentFixturesHash = '4db87173699ad9c9d8a67ccab96dfd2d'; const currentSettingsHash = '3a7ca0aa6a06cba47e3e898aef7029c2'; const currentRoutesHash = '3d180d52c663d173a6be791ef411ed01';