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);