Skip to content

Commit

Permalink
via migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Loki-Afro committed Oct 30, 2024
1 parent dec4e7f commit 256540c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions apps/server/src/migrations/mikro-orm/Migration20241030126666.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Migration } from '@mikro-orm/migrations-mongodb';

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

async down(): Promise<void> {
// no need
}
}

0 comments on commit 256540c

Please sign in to comment.