Skip to content

Commit

Permalink
Merge branch 'main' into N21-2103-update-media-activations
Browse files Browse the repository at this point in the history
  • Loading branch information
GordonNicholasCap authored Dec 16, 2024
2 parents 6dae8fc + c8be3a7 commit 8b191f3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
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"
}
}
]

0 comments on commit 8b191f3

Please sign in to comment.