From 3c247d93fe814e149e9d202f1115cfda9568d4b0 Mon Sep 17 00:00:00 2001 From: Steve Larson <9larsons@gmail.com> Date: Mon, 10 Jun 2024 11:35:21 -0500 Subject: [PATCH] Added posts.updated_at index to schema (#20357) ref 6dbbdff - added index to schema --- ghost/core/core/server/data/schema/schema.js | 2 +- ghost/core/test/unit/server/data/schema/integrity.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost/core/core/server/data/schema/schema.js b/ghost/core/core/server/data/schema/schema.js index cd08c4b0f4..33b4c03374 100644 --- a/ghost/core/core/server/data/schema/schema.js +++ b/ghost/core/core/server/data/schema/schema.js @@ -82,7 +82,7 @@ module.exports = { * This is valid for all x_by fields. */ created_by: {type: 'string', maxlength: 24, nullable: false}, - updated_at: {type: 'dateTime', nullable: true}, + updated_at: {type: 'dateTime', nullable: true, index: true}, updated_by: {type: 'string', maxlength: 24, nullable: true}, published_at: {type: 'dateTime', nullable: true, index: true}, published_by: {type: 'string', maxlength: 24, nullable: true}, 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 ef24cb5aab..59125074a2 100644 --- a/ghost/core/test/unit/server/data/schema/integrity.test.js +++ b/ghost/core/test/unit/server/data/schema/integrity.test.js @@ -35,7 +35,7 @@ const validateRouteSettings = require('../../../../../core/server/services/route */ describe('DB version integrity', function () { // Only these variables should need updating - const currentSchemaHash = '7ad5a5720c29fab6b8cebb19da496935'; + const currentSchemaHash = 'a04351620a75f14dfbd9158381df7f87'; const currentFixturesHash = 'a489d615989eab1023d4b8af0ecee7fd'; const currentSettingsHash = '5c957ceb48c4878767d7d3db484c592d'; const currentRoutesHash = '3d180d52c663d173a6be791ef411ed01';