2021-07-21 06:34:09 -04:00
|
|
|
/* eslint-disable no-unused-vars */
|
|
|
|
|
2024-10-01 05:53:36 -04:00
|
|
|
const Helpers = require('./lib/helpers')
|
2021-07-21 06:34:09 -04:00
|
|
|
|
2024-10-01 05:53:36 -04:00
|
|
|
exports.tags = ['server-ce', 'server-pro', 'saas']
|
2021-07-21 06:34:09 -04:00
|
|
|
|
2024-10-01 05:53:36 -04:00
|
|
|
exports.migrate = async client => {
|
2021-07-21 06:34:09 -04:00
|
|
|
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 }])
|
|
|
|
}
|
|
|
|
|
2024-10-01 05:53:36 -04:00
|
|
|
exports.rollback = async client => {
|
2021-07-21 06:34:09 -04:00
|
|
|
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
|
|
|
}
|