overleaf/services/web/migrations/lib/template.js

16 lines
398 B
JavaScript
Raw Normal View History

/* eslint-disable no-unused-vars */
const Helpers = require('./lib/helpers')
exports.tags = ['server-ce', 'server-pro', 'saas']
exports.migrate = async client => {
const { db } = client
// await Helpers.addIndexesToCollection(db.wombats, [{ name: 1 }])
}
exports.rollback = async client => {
const { db } = client
// await Helpers.dropIndexesFromCollection(db.wombats, [{ name: 1 }])
}