1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-04 09:48:43 +09:00
misskey/cli/migration/5.0.0.js

11 lines
219 B
JavaScript
Raw Normal View History

2018-07-24 23:35:19 +09:00
const { default: DriveFile } = require('../../built/models/drive-file');
DriveFile.update({}, {
$rename: {
'metadata.url': 'metadata.src',
'metadata.isMetaOnly': 'metadata.withoutChunks',
}
}, {
multi: true
});