mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-14 12:25:17 +00: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()) {
|
for (const d of client.hierarchy.domains()) {
|
||||||
await client.update(
|
await client.update(
|
||||||
d,
|
d,
|
||||||
|
Loading…
Reference in New Issue
Block a user