1
0
Fork 1
mirror of https://example.com synced 2024-11-24 20:36:38 +09:00
firefish/cli/migration/5.0.0.js
2018-07-24 23:35:19 +09:00

10 lines
219 B
JavaScript

const { default: DriveFile } = require('../../built/models/drive-file');
DriveFile.update({}, {
$rename: {
'metadata.url': 'metadata.src',
'metadata.isMetaOnly': 'metadata.withoutChunks',
}
}, {
multi: true
});