mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-04 06:57:12 +01:00
use collation for case-insensitive comparisons
This commit is contained in:
@@ -8,7 +8,7 @@ const BookerSchema = new mongoose.Schema(
|
|||||||
zip: { type: String, required: true },
|
zip: { type: String, required: true },
|
||||||
city: { type: String, required: true },
|
city: { type: String, required: true },
|
||||||
},
|
},
|
||||||
{ timestamps: true }
|
{ timestamps: true, collation: { locale: 'de', strength: 1 } }
|
||||||
)
|
)
|
||||||
|
|
||||||
export default mongoose.models.Booker || mongoose.model('Booker', BookerSchema)
|
export default mongoose.models.Booker || mongoose.model('Booker', BookerSchema)
|
||||||
|
|||||||
Reference in New Issue
Block a user