20000000000000_template.mjs 643 B

1234567891011121314151617181920212223242526
  1. /* eslint-disable no-unused-vars */
  2. import Helpers from './lib/helpers.mjs'
  3. const tags = ['server-ce', 'server-pro', 'saas']
  4. const migrate = async client => {
  5. const { db } = client
  6. // Are there migrations that need to run before this migration?
  7. // Use the following helper to enforce the dependency:
  8. //
  9. // await Helpers.assertDependency('20200101000000_another_migration')
  10. // await Helpers.addIndexesToCollection(db.wombats, [{ name: 1 }])
  11. }
  12. const rollback = async client => {
  13. const { db } = client
  14. // await Helpers.dropIndexesFromCollection(db.wombats, [{ name: 1 }])
  15. }
  16. export default {
  17. tags,
  18. migrate,
  19. rollback,
  20. }