diff --git a/services/web/app/src/infrastructure/mongodb.mjs b/services/web/app/src/infrastructure/mongodb.mjs index d61f45f5f0..ec9a3e0065 100644 --- a/services/web/app/src/infrastructure/mongodb.mjs +++ b/services/web/app/src/infrastructure/mongodb.mjs @@ -53,7 +53,6 @@ export const db = { grouppolicies: internalDb.collection('grouppolicies'), groupAuditLogEntries: internalDb.collection('groupAuditLogEntries'), institutions: internalDb.collection('institutions'), - libraryReferences: internalDb.collection('libraryReferences'), messages: internalDb.collection('messages'), migrations: internalDb.collection('migrations'), notifications: internalDb.collection('notifications'), diff --git a/tools/migrations/20260420120000_create_libraryReferences_userId_updatedAt_index.mjs b/tools/migrations/20260420120000_create_libraryReferences_userId_updatedAt_index.mjs deleted file mode 100644 index 2f3ca88e29..0000000000 --- a/tools/migrations/20260420120000_create_libraryReferences_userId_updatedAt_index.mjs +++ /dev/null @@ -1,26 +0,0 @@ -import Helpers from './lib/helpers.mjs' - -const tags = ['saas'] - -const indexes = [ - { - key: { userId: 1, updatedAt: 1 }, - name: 'userId_1_updatedAt_1', - }, -] - -const migrate = async client => { - const { db } = client - await Helpers.addIndexesToCollection(db.libraryReferences, indexes) -} - -const rollback = async client => { - const { db } = client - await Helpers.dropIndexesFromCollection(db.libraryReferences, indexes) -} - -export default { - tags, - migrate, - rollback, -} diff --git a/tools/migrations/lib/mongodb.mjs b/tools/migrations/lib/mongodb.mjs index d1652d3666..dc0ad2c214 100644 --- a/tools/migrations/lib/mongodb.mjs +++ b/tools/migrations/lib/mongodb.mjs @@ -29,7 +29,6 @@ export const db = { grouppolicies: internalDb.collection('grouppolicies'), groupAuditLogEntries: internalDb.collection('groupAuditLogEntries'), institutions: internalDb.collection('institutions'), - libraryReferences: internalDb.collection('libraryReferences'), messages: internalDb.collection('messages'), migrations: internalDb.collection('migrations'), notifications: internalDb.collection('notifications'),