migration to remove old phashes

indiachan-spamvector v0.6.5
Thomas Lynch 2 years ago
parent a834672c51
commit 9884ca2665
  1. 12
      migrations/0.6.5.js
  2. 2
      package.json

@ -0,0 +1,12 @@
'use strict';
module.exports = async(db, redis) => {
console.log('remove older phashes');
await db.collection('posts').updateMany({}, {
'$unset': {
'files.$[].phash': ''
}
});
};

@ -1,7 +1,7 @@
{
"name": "jschan",
"version": "0.6.5",
"migrateVersion": "0.6.3",
"migrateVersion": "0.6.5",
"description": "",
"main": "server.js",
"dependencies": {

Loading…
Cancel
Save