mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 19:44:59 +03:00
Fix migrations (#3575)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
551432ff3b
commit
8e3738fe31
@ -118,6 +118,37 @@ export const contactOperation: MigrateOperation = {
|
||||
}
|
||||
)
|
||||
|
||||
await client.update(
|
||||
DOMAIN_TX,
|
||||
{
|
||||
objectClass: core.class.Attribute,
|
||||
'attributes.type.to': 'contact:class:Employee'
|
||||
},
|
||||
{
|
||||
$set: { 'attributes.type.to': contact.mixin.Employee }
|
||||
}
|
||||
)
|
||||
await client.update(
|
||||
DOMAIN_TX,
|
||||
{
|
||||
objectClass: core.class.Attribute,
|
||||
'operations.type.to': 'contact:class:Employee'
|
||||
},
|
||||
{
|
||||
$set: { 'operations.type.to': contact.mixin.Employee }
|
||||
}
|
||||
)
|
||||
|
||||
await client.update(
|
||||
DOMAIN_TX,
|
||||
{
|
||||
'attributes.extends': 'contact:class:Employee'
|
||||
},
|
||||
{
|
||||
$set: { 'attributes.extends': contact.mixin.Employee }
|
||||
}
|
||||
)
|
||||
|
||||
for (const d of client.hierarchy.domains()) {
|
||||
await client.update(
|
||||
d,
|
||||
|
Loading…
Reference in New Issue
Block a user