Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BC-8571 adding index to files.securityCheck.requestToken #5399

Merged
merged 3 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions apps/server/src/migrations/mikro-orm/Migration20241213145222.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Migration } from '@mikro-orm/migrations-mongodb';

export class Migration20241213145222 extends Migration {
public async up(): Promise<void> {
await this.getCollection('files').createIndex({ 'securityCheck.requestToken': 1 });
}

public async down(): Promise<void> {
// no need
}
}
9 changes: 9 additions & 0 deletions backup/setup/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
]
Loading