mirror of
https://github.com/strapi/strapi.git
synced 2025-08-28 10:45:51 +00:00
enhancement(database): change schema hash from md5 to sha256 (#23116)
This commit is contained in:
parent
e7d11cb360
commit
b445ac2d35
@ -65,7 +65,7 @@ export default (db: Database) => {
|
||||
},
|
||||
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user