From 6dbbdfff49bcae592060f55e18d2b214f513dde1 Mon Sep 17 00:00:00 2001 From: Steve Larson <9larsons@gmail.com> Date: Mon, 10 Jun 2024 10:37:10 -0500 Subject: [PATCH] Added updated_at index to the posts table (#20354) ref https://linear.app/tryghost/issue/ONC-82 - added migration for adding a posts.updated_at index --- .../5.85/2024-06-10-14-53-31-add-posts-updated-at-index.js | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 ghost/core/core/server/data/migrations/versions/5.85/2024-06-10-14-53-31-add-posts-updated-at-index.js diff --git a/ghost/core/core/server/data/migrations/versions/5.85/2024-06-10-14-53-31-add-posts-updated-at-index.js b/ghost/core/core/server/data/migrations/versions/5.85/2024-06-10-14-53-31-add-posts-updated-at-index.js new file mode 100644 index 0000000000..124e86e500 --- /dev/null +++ b/ghost/core/core/server/data/migrations/versions/5.85/2024-06-10-14-53-31-add-posts-updated-at-index.js @@ -0,0 +1,4 @@ +// For information on writing migrations, see https://www.notion.so/ghost/Database-migrations-eb5b78c435d741d2b34a582d57c24253 +const {createAddIndexMigration} = require('../../utils'); + +module.exports = createAddIndexMigration('posts',['updated_at']); \ No newline at end of file