Fix: warning migration

This commit is contained in:
2026-04-23 13:11:14 +07:00
parent e9356be04c
commit 19321223b4
+1 -2
View File
@@ -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);