mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 21:45:01 +02:00
Remove creations (#1414)
Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
//
|
||||
// Copyright © 2020, 2021 Anticrm Platform Contributors.
|
||||
//
|
||||
// Licensed under the Eclipse Public License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License. You may
|
||||
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
//
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import type { Client } from '@anticrm/core'
|
||||
import { createDeps as createTaskDeps } from '@anticrm/model-task'
|
||||
import { createDeps as createLeadDeps } from '@anticrm/model-lead'
|
||||
import { createDeps as createRecruitDeps } from '@anticrm/model-recruit'
|
||||
import { createDeps as createDemoDeps } from '@anticrm/model-demo'
|
||||
import { createDeps as createTrackerDeps } from '@anticrm/model-tracker'
|
||||
import { createDeps as createBoardDeps } from '@anticrm/model-board'
|
||||
|
||||
export async function createDeps (client: Client): Promise<void> {
|
||||
await createTaskDeps(client)
|
||||
await createLeadDeps(client)
|
||||
await createRecruitDeps(client)
|
||||
await createDemoDeps(client)
|
||||
await createTrackerDeps(client)
|
||||
await createBoardDeps(client)
|
||||
}
|
||||
@@ -22,7 +22,6 @@ import { createModel as attachmentModel } from '@anticrm/model-attachment'
|
||||
import { createModel as chunterModel } from '@anticrm/model-chunter'
|
||||
import { createModel as contactModel } from '@anticrm/model-contact'
|
||||
import { createModel as coreModel } from '@anticrm/model-core'
|
||||
import { createDemo } from '@anticrm/model-demo'
|
||||
import { createModel as gmailModel } from '@anticrm/model-gmail'
|
||||
import { createModel as inventoryModel } from '@anticrm/model-inventory'
|
||||
import { createModel as leadModel } from '@anticrm/model-lead'
|
||||
@@ -98,7 +97,6 @@ const builders: [(b: Builder) => void, string][] = [
|
||||
[serverGmailModel, 'server-gmail'],
|
||||
[serverTelegramModel, 'server-telegram'],
|
||||
[trackerModel, 'tracker'],
|
||||
[createDemo, 'demo'],
|
||||
[boardModel, 'board']
|
||||
]
|
||||
|
||||
@@ -124,5 +122,4 @@ builder.createDoc(core.class.Version, core.space.Model, version, core.version.Mo
|
||||
export default builder
|
||||
|
||||
// Export upgrade procedures
|
||||
export { createDeps } from './creation'
|
||||
export { migrateOperations } from './migration'
|
||||
|
||||
@@ -31,10 +31,12 @@ import { templatesOperation } from '@anticrm/model-templates'
|
||||
import { viewOperation } from '@anticrm/model-view'
|
||||
import { trackerOperation } from '@anticrm/model-tracker'
|
||||
import { boardOperation } from '@anticrm/model-board'
|
||||
import { demoOperation } from '@anticrm/model-demo'
|
||||
|
||||
export const migrateOperations: MigrateOperation[] = [
|
||||
coreOperation,
|
||||
chunterOperation,
|
||||
demoOperation,
|
||||
gmailOperation,
|
||||
templatesOperation,
|
||||
telegramOperation,
|
||||
|
||||
Reference in New Issue
Block a user