2024-07-03 04:54:42 -04:00
|
|
|
/* eslint-disable no-unused-vars */
|
|
|
|
|
2024-10-02 05:32:13 -04:00
|
|
|
import Helpers from './lib/helpers.mjs'
|
2024-07-03 04:54:42 -04:00
|
|
|
|
2024-10-02 05:32:13 -04:00
|
|
|
const tags = ['server-ce', 'server-pro', 'saas']
|
2024-07-03 04:54:42 -04:00
|
|
|
|
2024-10-02 05:32:13 -04:00
|
|
|
const migrate = async client => {
|
2024-07-03 04:54:42 -04:00
|
|
|
const { db } = client
|
|
|
|
await Helpers.assertDependency(
|
|
|
|
'20240524135408_add_token_hmac_project_invite_tokens'
|
|
|
|
)
|
|
|
|
await db.projectInvites.updateMany({}, { $unset: { token: 1 } })
|
|
|
|
}
|
|
|
|
|
2024-10-02 05:32:13 -04:00
|
|
|
const rollback = async client => {}
|
|
|
|
|
|
|
|
export default {
|
|
|
|
tags,
|
|
|
|
migrate,
|
|
|
|
rollback,
|
|
|
|
}
|