From ca6d68834478a6637dd603fffe33bd8de0360190 Mon Sep 17 00:00:00 2001 From: einhorn_b Date: Tue, 19 Dec 2023 16:30:04 +0100 Subject: [PATCH] add comments to explain local imports --- dlt-database/entity/0001-init_db/Account.ts | 2 ++ dlt-database/entity/0001-init_db/Community.ts | 1 + dlt-database/entity/0001-init_db/ConfirmedTransaction.ts | 2 ++ dlt-database/entity/0001-init_db/TransactionRecipe.ts | 3 +++ 4 files changed, 8 insertions(+) diff --git a/dlt-database/entity/0001-init_db/Account.ts b/dlt-database/entity/0001-init_db/Account.ts index 4a7801c0e..7ceaf09cc 100644 --- a/dlt-database/entity/0001-init_db/Account.ts +++ b/dlt-database/entity/0001-init_db/Account.ts @@ -8,7 +8,9 @@ import { BaseEntity, } from 'typeorm' import { User } from '../User' +// TransactionRecipe was removed in newer migrations, so only the version from this folder can be linked import { TransactionRecipe } from './TransactionRecipe' +// ConfirmedTransaction was removed in newer migrations, so only the version from this folder can be linked import { ConfirmedTransaction } from './ConfirmedTransaction' import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer' import { Decimal } from 'decimal.js-light' diff --git a/dlt-database/entity/0001-init_db/Community.ts b/dlt-database/entity/0001-init_db/Community.ts index 52f8c1155..943914878 100644 --- a/dlt-database/entity/0001-init_db/Community.ts +++ b/dlt-database/entity/0001-init_db/Community.ts @@ -8,6 +8,7 @@ import { BaseEntity, } from 'typeorm' import { Account } from '../Account' +// TransactionRecipe was removed in newer migrations, so only the version from this folder can be linked import { TransactionRecipe } from './TransactionRecipe' import { AccountCommunity } from '../AccountCommunity' diff --git a/dlt-database/entity/0001-init_db/ConfirmedTransaction.ts b/dlt-database/entity/0001-init_db/ConfirmedTransaction.ts index b195e17c2..408a58a69 100644 --- a/dlt-database/entity/0001-init_db/ConfirmedTransaction.ts +++ b/dlt-database/entity/0001-init_db/ConfirmedTransaction.ts @@ -10,7 +10,9 @@ import { import { Decimal } from 'decimal.js-light' import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer' +// the relation in future account don't match which this any longer, so we can only link with the local account here import { Account } from './Account' +// TransactionRecipe was removed in newer migrations, so only the version from this folder can be linked import { TransactionRecipe } from './TransactionRecipe' @Entity('confirmed_transactions') diff --git a/dlt-database/entity/0001-init_db/TransactionRecipe.ts b/dlt-database/entity/0001-init_db/TransactionRecipe.ts index 1222cfbdd..b2acbba75 100644 --- a/dlt-database/entity/0001-init_db/TransactionRecipe.ts +++ b/dlt-database/entity/0001-init_db/TransactionRecipe.ts @@ -10,8 +10,11 @@ import { import { Decimal } from 'decimal.js-light' import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer' +// the relation in future account don't match which this any longer, so we can only link with the local account here import { Account } from './Account' +// the relation in future community don't match which this any longer, so we can only link with the local account here import { Community } from './Community' +// ConfirmedTransaction was removed in newer migrations, so only the version from this folder can be linked import { ConfirmedTransaction } from './ConfirmedTransaction' @Entity('transaction_recipes')