enhancement(database): change schema hash from md5 to sha256 (#23116)

This commit is contained in:
DMehaffy 2025-05-21 04:32:43 -07:00 committed by GitHub
parent e7d11cb360
commit b445ac2d35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,7 +65,7 @@ export default (db: Database) => {
}, },
hashSchema(schema: Schema) { hashSchema(schema: Schema) {
return crypto.createHash('md5').update(JSON.stringify(schema)).digest('hex'); return crypto.createHash('sha256').update(JSON.stringify(schema)).digest('hex');
}, },
async add(schema: Schema) { async add(schema: Schema) {