diff --git a/apps/server/src/migrations/mikro-orm/Migration20241213145222.ts b/apps/server/src/migrations/mikro-orm/Migration20241213145222.ts new file mode 100644 index 0000000000..3624c00622 --- /dev/null +++ b/apps/server/src/migrations/mikro-orm/Migration20241213145222.ts @@ -0,0 +1,11 @@ +import { Migration } from '@mikro-orm/migrations-mongodb'; + +export class Migration20241213145222 extends Migration { + public async up(): Promise { + await this.getCollection('files').createIndex({ 'securityCheck.requestToken': 1 }); + } + + public async down(): Promise { + // no need + } +} diff --git a/backup/setup/migrations.json b/backup/setup/migrations.json index 9babec5e26..1ff8155827 100644 --- a/backup/setup/migrations.json +++ b/backup/setup/migrations.json @@ -322,5 +322,14 @@ "created_at": { "$date": "2024-12-12T10:40:52.029Z" } + }, + { + "_id": { + "$oid": "675c3caac52cd071103a87bb" + }, + "name": "Migration20241213145222", + "created_at": { + "$date": "2024-11-20T17:03:31.473Z" + } } ]