2021-07-21 06:34:09 -04:00
|
|
|
/* eslint-disable no-unused-vars */
|
|
|
|
|
|
|
|
const Helpers = require('./lib/helpers')
|
|
|
|
|
|
|
|
exports.tags = ['server-ce', 'server-pro', 'saas']
|
|
|
|
|
|
|
|
exports.migrate = async client => {
|
|
|
|
const { db } = client
|
2024-05-02 08:42:48 -04:00
|
|
|
// Are there migrations that need to run before this migration?
|
|
|
|
// Use the following helper to enforce the dependency:
|
|
|
|
//
|
|
|
|
// await Helpers.assertDependency('20200101000000_another_migration')
|
|
|
|
|
2021-07-21 06:34:09 -04:00
|
|
|
// await Helpers.addIndexesToCollection(db.wombats, [{ name: 1 }])
|
|
|
|
}
|
|
|
|
|
|
|
|
exports.rollback = async client => {
|
|
|
|
const { db } = client
|
2022-01-10 06:36:18 -05:00
|
|
|
// await Helpers.dropIndexesFromCollection(db.wombats, [{ name: 1 }])
|
2021-07-21 06:34:09 -04:00
|
|
|
}
|