diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c2ab26cc..2ceafb050 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,14 +4,22 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [v0.77.0](https://github.com/isomerpages/isomercms-backend/compare/v0.76.0...v0.77.0) + +- chore: index notifications table [`#1275`](https://github.com/isomerpages/isomercms-backend/pull/1275) +- backport v0.76.0 [`#1274`](https://github.com/isomerpages/isomercms-backend/pull/1274) + #### [v0.76.0](https://github.com/isomerpages/isomercms-backend/compare/v0.75.0...v0.76.0) +> 4 April 2024 + - fix: external links in top level nav [`#1272`](https://github.com/isomerpages/isomercms-backend/pull/1272) - Improve APM spans (no more <anonymous>) [`#1267`](https://github.com/isomerpages/isomercms-backend/pull/1267) - fix: remove unecessary join and site retrieval [`#1268`](https://github.com/isomerpages/isomercms-backend/pull/1268) - fix(dig): dig not working [`#1246`](https://github.com/isomerpages/isomercms-backend/pull/1246) - fix(server): server should die if unable to connect to db [`#1265`](https://github.com/isomerpages/isomercms-backend/pull/1265) - backport v0.75.0 [`#1264`](https://github.com/isomerpages/isomercms-backend/pull/1264) +- chore: bump version to v0.76.0 [`ef627d5`](https://github.com/isomerpages/isomercms-backend/commit/ef627d5a2383033cd903d4bf6ebc7beaa6dd23f7) #### [v0.75.0](https://github.com/isomerpages/isomercms-backend/compare/v0.74.0...v0.75.0) diff --git a/package-lock.json b/package-lock.json index 4785e50ae..264cb6b40 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "isomercms", - "version": "0.76.0", + "version": "0.77.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "isomercms", - "version": "0.76.0", + "version": "0.77.0", "hasInstallScript": true, "dependencies": { "@aws-sdk/client-amplify": "^3.521.0", diff --git a/package.json b/package.json index 8fc5b966c..3060e042c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "isomercms", - "version": "0.76.0", + "version": "0.77.0", "private": true, "scripts": { "build": "tsc -p tsconfig.build.json", diff --git a/src/database/migrations/20240405132731-add-notification-indexes.js b/src/database/migrations/20240405132731-add-notification-indexes.js new file mode 100644 index 000000000..d7f486826 --- /dev/null +++ b/src/database/migrations/20240405132731-add-notification-indexes.js @@ -0,0 +1,24 @@ +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface, Sequelize) { + await queryInterface.addIndex( + "notifications", // name of Source model + ["site_id", "user_id"] + ) + await queryInterface.addIndex( + "notifications", // name of Source model + ["user_id"] + ) + }, + + async down(queryInterface, Sequelize) { + await queryInterface.removeIndex( + "notifications", // name of Source model + ["site_id", "user_id"] + ) + await queryInterface.removeIndex( + "notifications", // name of Source model + ["user_id"] + ) + }, +}