From 4edcc9621c3258f4426f1f51ecee4ddb7aa2cb8d Mon Sep 17 00:00:00 2001 From: blazejpass <118356546+blazejpass@users.noreply.github.com> Date: Wed, 24 Apr 2024 16:48:12 +0200 Subject: [PATCH] BC-7197 Change Index declaration method (#4957) * Change Index declaration method --- .../src/shared/domain/entity/boardnode/boardnode.entity.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/server/src/shared/domain/entity/boardnode/boardnode.entity.ts b/apps/server/src/shared/domain/entity/boardnode/boardnode.entity.ts index 9877f6a1e4f..46234df98c5 100644 --- a/apps/server/src/shared/domain/entity/boardnode/boardnode.entity.ts +++ b/apps/server/src/shared/domain/entity/boardnode/boardnode.entity.ts @@ -8,6 +8,8 @@ import { BoardDoBuilder, BoardNodeType } from './types'; const PATH_SEPARATOR = ','; @Entity({ tableName: 'boardnodes', discriminatorColumn: 'type', abstract: true }) +@Index({ properties: ['path'] }) +@Index({ properties: ['type'] }) export abstract class BoardNode extends BaseEntityWithTimestamps { constructor(props: BoardNodeProps) { super();