From 19321223b4dc047ee8ba0cb708b52eec1e54b249 Mon Sep 17 00:00:00 2001 From: duyphan1410 Date: Thu, 23 Apr 2026 13:11:14 +0700 Subject: [PATCH] Fix: warning migration --- models/migration.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/models/migration.js b/models/migration.js index 72f555d..196a33f 100644 --- a/models/migration.js +++ b/models/migration.js @@ -5,7 +5,6 @@ const migrationSchema = new mongoose.Schema({ type: String, required: true, unique: true, - index: true }, batch: { type: Number, @@ -21,7 +20,7 @@ const migrationSchema = new mongoose.Schema({ }); // Index để tìm kiếm nhanh -migrationSchema.index({ name: 1 }); +// migrationSchema.index({ name: 1 }); migrationSchema.index({ batch: -1 }); module.exports = mongoose.model('Migration', migrationSchema);