Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2022-10-28 22:16:09 +07:00
committed by GitHub
parent a5fbf5b59e
commit 9dbdf4dba8
4 changed files with 26 additions and 6 deletions
+4 -4
View File
@@ -87,11 +87,13 @@ const builders: [(b: Builder) => void, string][] = [
[preferenceModel, 'preference'],
[hrModel, 'hr'],
[documentModel, 'document'],
[trackerModel, 'tracker'],
[boardModel, 'board'],
[calendarModel, 'calendar'],
[serverCoreModel, 'server-core'],
[serverAttachmentModel, 'server-attachment'],
[serverContactModel, 'server-contact'],
[serverNotificationModel, 'server-notification'],
[serveSettingModel, 'server-setting'],
[serverChunterModel, 'server-chunter'],
[serverInventoryModel, 'server-inventory'],
@@ -104,9 +106,7 @@ const builders: [(b: Builder) => void, string][] = [
[serverGmailModel, 'server-gmail'],
[serverTelegramModel, 'server-telegram'],
[serverHrModel, 'server-hr'],
[trackerModel, 'tracker'],
[boardModel, 'board'],
[calendarModel, 'calendar'],
[serverNotificationModel, 'server-notification'],
[automationModel, 'automation']
]
+13
View File
@@ -26,8 +26,21 @@ import { getCategories } from '@anticrm/skillset'
import { KanbanTemplate } from '@hcengineering/task'
import recruit from './plugin'
async function fixImportedTitle (client: MigrationClient): Promise<void> {
await client.update(
DOMAIN_CONTACT,
{
title: { $exists: true }
},
{
$rename: { title: 'recruit:mixin:Candidate.title' }
}
)
}
export const recruitOperation: MigrateOperation = {
async migrate (client: MigrationClient): Promise<void> {
await fixImportedTitle(client)
await client.update(
DOMAIN_CALENDAR,
{