From ecfb870d69cd346547d9b6af7f5a10597e5d271e Mon Sep 17 00:00:00 2001 From: "Rahul R." Date: Tue, 24 Dec 2024 13:08:06 +0530 Subject: [PATCH] refactor: streamline chalk imports for consistency --- .../migrations/1679765443208-MigrateRolePermisisons.ts | 2 +- .../migrations/1705138670108-MysqlTablesMigration.ts | 4 ++-- ...706968055472-upgradeEstimateEmailTableTokenColumnValue.ts | 4 ++-- .../migrations/1708158787002-AlterActivityEntityTable.ts | 4 ++-- .../migrations/1711564805530-AlterStorageProvider.ts | 4 ++-- .../1713187612530-AlterEmployeeCustomEntityFields.ts | 4 ++-- .../migrations/1713275626299-AlterTagCustomEntityFields.ts | 4 ++-- .../1714185928435-CreateDailyPlanAndTasksTables.ts | 4 ++-- .../1714319484155-AlterCustomFieldsDefaultColumn.ts | 4 ++-- .../migrations/1715002586455-UpdateDailyPlanWorkTimeType.ts | 4 ++-- .../1715604925998-AlterIssueTypeAddColumnIsDefault.ts | 4 ++-- ...80147522-AlterOrganizationTeamAddShareProfileViewField.ts | 4 ++-- .../migrations/1716206591055-AddTimeFormatToUserEntity.ts | 4 ++-- .../migrations/1716839592949-CreateSocialAccountEntity.ts | 4 ++-- ...634024-AlterOrganizationTeamAddRequirePlanToTrackField.ts | 4 ++-- ...937371312-AlterOrganizationGithubRepositoryEntityTable.ts | 4 ++-- ...3595-AlterOrganizationGithubRepositoryIssueEntityTable.ts | 4 ++-- ...20177290238-AlterOrganizationProjectCustomEntityFields.ts | 4 ++-- .../migrations/1720852356593-CreateProductReviewTable.ts | 4 ++-- .../1723645947040-AlterTaskStatusesAddWorkFlowFields.ts | 4 ++-- .../1724062299873-AlterDailyPlanAddTeamRelation.ts | 4 ++-- .../migrations/1724929664505-CreateProjectModuleTable.ts | 4 ++-- .../1725788544671-AlterTaskEntityAddIsDraftField.ts | 4 ++-- .../1725794120289-AlterTaskStatusEntityAddingDefaultField.ts | 4 ++-- .../1725879899378-AlterBaseEntityAddArchivedAtField.ts | 4 ++-- .../database/migrations/1725950092620-AddFavoriteTable.ts | 4 ++-- .../1725956395183-AddColumnsToOrganizationProjectEntity.ts | 4 ++-- ...26037588814-AddColumnsToOrganizationTeamEmployeeEntity.ts | 4 ++-- .../database/migrations/1726202213012-CreateCommentTable.ts | 4 ++-- .../migrations/1726206783506-MigrateEmailTemplates.ts | 4 ++-- .../database/migrations/1726231843184-CreateReactionTable.ts | 4 ++-- .../migrations/1726506479984-AlterFavoriteEntityIndexing.ts | 4 ++-- ...09769379-AddColumnsToOrganizationProjectEmployeeEntity.ts | 4 ++-- .../migrations/1726648418130-CreateActivityLogTable.ts | 4 ++-- .../migrations/1727152443794-CreateProjectModuleTaskTable.ts | 4 ++-- ...271308311-AddIndexingOrganizationProjectEmployeeEntity.ts | 4 ++-- ...84713380-AlterActorTypeInCommentAndActivityLogEntities.ts | 4 ++-- ...4184608-AlterTokenColumnTypeToTextInPasswordResetTable.ts | 4 ++-- .../1728024420021-MigratePasswordResetEmailTemplates.ts | 4 ++-- ...728301971790-MigrateOrganizationSprintsRelatedEntities.ts | 4 ++-- .../migrations/1728461410740-CreateTableIssueView.ts | 4 ++-- ...69-AddStandardWorkHoursPerDayColumnToOrganizationTable.ts | 4 ++-- ...82634174-AddStandardWorkHoursPerDayColumnToTenantTable.ts | 4 ++-- .../migrations/1728645657957-CreateApiCallLogTable.ts | 4 ++-- .../migrations/1728798743598-CreateResourceLinkTable.ts | 4 ++-- .../1729861943822-AlterConstraintsForResourceLinkTable.ts | 5 ++--- ...54227-AddTimeTrackingPermissionsColumnsToEmployeeTable.ts | 5 ++--- .../database/migrations/1732537145609-CreateMentionTable.ts | 5 ++--- .../migrations/1732685369636-CreateSubscriptionTable.ts | 5 ++--- .../1733304689932-UpdateMembersRelationToProjectModule.ts | 5 ++--- .../migrations/1733566941638-CreateScreeningTaskEntity.ts | 5 ++--- ...1734434773692-AlterEmployeeSettingAddSettingJsonFields.ts | 5 ++--- 52 files changed, 103 insertions(+), 110 deletions(-) diff --git a/packages/core/src/lib/database/migrations/1679765443208-MigrateRolePermisisons.ts b/packages/core/src/lib/database/migrations/1679765443208-MigrateRolePermisisons.ts index 255b19ebb58..8ba68a8c16c 100644 --- a/packages/core/src/lib/database/migrations/1679765443208-MigrateRolePermisisons.ts +++ b/packages/core/src/lib/database/migrations/1679765443208-MigrateRolePermisisons.ts @@ -1,7 +1,7 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; import * as chalk from 'chalk'; -import { RolePermissionUtils } from '../../role-permission/utils'; import { DatabaseTypeEnum } from '@gauzy/config'; +import { RolePermissionUtils } from '../../role-permission/utils'; export class MigrateRolePermisisons1679765443208 implements MigrationInterface { name = 'MigrateRolePermisisons1679765443208'; diff --git a/packages/core/src/lib/database/migrations/1705138670108-MysqlTablesMigration.ts b/packages/core/src/lib/database/migrations/1705138670108-MysqlTablesMigration.ts index 660010fa3d0..e608ac611fd 100644 --- a/packages/core/src/lib/database/migrations/1705138670108-MysqlTablesMigration.ts +++ b/packages/core/src/lib/database/migrations/1705138670108-MysqlTablesMigration.ts @@ -1,6 +1,6 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; -import { yellow } from 'chalk'; export class MysqlTablesMigration1705138670108 implements MigrationInterface { name = 'MysqlTablesMigration1705138670108'; @@ -11,7 +11,7 @@ export class MysqlTablesMigration1705138670108 implements MigrationInterface { * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1706968055472-upgradeEstimateEmailTableTokenColumnValue.ts b/packages/core/src/lib/database/migrations/1706968055472-upgradeEstimateEmailTableTokenColumnValue.ts index 2e366350196..504b10c8e51 100644 --- a/packages/core/src/lib/database/migrations/1706968055472-upgradeEstimateEmailTableTokenColumnValue.ts +++ b/packages/core/src/lib/database/migrations/1706968055472-upgradeEstimateEmailTableTokenColumnValue.ts @@ -1,7 +1,7 @@ import { MigrationInterface, QueryRunner } from "typeorm"; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from "@gauzy/config"; -import { yellow } from "chalk"; export class UpgradeEstimateEmailTableTokenColumnValue1706968055472 implements MigrationInterface { @@ -13,7 +13,7 @@ export class UpgradeEstimateEmailTableTokenColumnValue1706968055472 implements M * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1708158787002-AlterActivityEntityTable.ts b/packages/core/src/lib/database/migrations/1708158787002-AlterActivityEntityTable.ts index 977d78730fe..d20374d25dd 100644 --- a/packages/core/src/lib/database/migrations/1708158787002-AlterActivityEntityTable.ts +++ b/packages/core/src/lib/database/migrations/1708158787002-AlterActivityEntityTable.ts @@ -1,7 +1,7 @@ import { MigrationInterface, QueryRunner } from "typeorm"; import { DatabaseTypeEnum } from "@gauzy/config"; -import { yellow } from "chalk"; +import * as chalk from 'chalk'; export class AlterActivityEntityTable1708158787002 implements MigrationInterface { @@ -13,7 +13,7 @@ export class AlterActivityEntityTable1708158787002 implements MigrationInterface * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1711564805530-AlterStorageProvider.ts b/packages/core/src/lib/database/migrations/1711564805530-AlterStorageProvider.ts index 8d3f0a7c111..4473ebe984f 100644 --- a/packages/core/src/lib/database/migrations/1711564805530-AlterStorageProvider.ts +++ b/packages/core/src/lib/database/migrations/1711564805530-AlterStorageProvider.ts @@ -1,6 +1,6 @@ import { MigrationInterface, QueryRunner } from "typeorm"; -import { yellow } from "chalk"; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from "@gauzy/config"; export class AlterStorageProvider1711564805530 implements MigrationInterface { @@ -13,7 +13,7 @@ export class AlterStorageProvider1711564805530 implements MigrationInterface { * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1713187612530-AlterEmployeeCustomEntityFields.ts b/packages/core/src/lib/database/migrations/1713187612530-AlterEmployeeCustomEntityFields.ts index f4fd6650a23..b0ded95fd10 100644 --- a/packages/core/src/lib/database/migrations/1713187612530-AlterEmployeeCustomEntityFields.ts +++ b/packages/core/src/lib/database/migrations/1713187612530-AlterEmployeeCustomEntityFields.ts @@ -1,6 +1,6 @@ import { MigrationInterface, QueryRunner } from "typeorm"; -import { yellow } from "chalk"; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from "@gauzy/config"; export class AlterEmployeeCustomEntityFields1713187612530 implements MigrationInterface { @@ -13,7 +13,7 @@ export class AlterEmployeeCustomEntityFields1713187612530 implements MigrationIn * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1713275626299-AlterTagCustomEntityFields.ts b/packages/core/src/lib/database/migrations/1713275626299-AlterTagCustomEntityFields.ts index c484e58eb41..7b9ea42b425 100644 --- a/packages/core/src/lib/database/migrations/1713275626299-AlterTagCustomEntityFields.ts +++ b/packages/core/src/lib/database/migrations/1713275626299-AlterTagCustomEntityFields.ts @@ -1,6 +1,6 @@ import { MigrationInterface, QueryRunner } from "typeorm"; -import { yellow } from "chalk"; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from "@gauzy/config"; export class AlterTagCustomEntityFields1713275626299 implements MigrationInterface { @@ -13,7 +13,7 @@ export class AlterTagCustomEntityFields1713275626299 implements MigrationInterfa * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1714185928435-CreateDailyPlanAndTasksTables.ts b/packages/core/src/lib/database/migrations/1714185928435-CreateDailyPlanAndTasksTables.ts index 8a587c26d27..d214ef79f6b 100644 --- a/packages/core/src/lib/database/migrations/1714185928435-CreateDailyPlanAndTasksTables.ts +++ b/packages/core/src/lib/database/migrations/1714185928435-CreateDailyPlanAndTasksTables.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class CreateDailyPlanAndTasksTables1714185928435 implements MigrationInterface { @@ -11,7 +11,7 @@ export class CreateDailyPlanAndTasksTables1714185928435 implements MigrationInte * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1714319484155-AlterCustomFieldsDefaultColumn.ts b/packages/core/src/lib/database/migrations/1714319484155-AlterCustomFieldsDefaultColumn.ts index d988cef04ed..d91d4401410 100644 --- a/packages/core/src/lib/database/migrations/1714319484155-AlterCustomFieldsDefaultColumn.ts +++ b/packages/core/src/lib/database/migrations/1714319484155-AlterCustomFieldsDefaultColumn.ts @@ -1,6 +1,6 @@ import { MigrationInterface, QueryRunner } from "typeorm"; -import { yellow } from "chalk"; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from "@gauzy/config"; export class AlterCustomFieldsDefaultColumn1714319484155 implements MigrationInterface { @@ -13,7 +13,7 @@ export class AlterCustomFieldsDefaultColumn1714319484155 implements MigrationInt * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1715002586455-UpdateDailyPlanWorkTimeType.ts b/packages/core/src/lib/database/migrations/1715002586455-UpdateDailyPlanWorkTimeType.ts index 086e4e0b7c1..5d3d9973d24 100644 --- a/packages/core/src/lib/database/migrations/1715002586455-UpdateDailyPlanWorkTimeType.ts +++ b/packages/core/src/lib/database/migrations/1715002586455-UpdateDailyPlanWorkTimeType.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class UpdateDailyPlanWorkTimeType1715002586455 implements MigrationInterface { @@ -11,7 +11,7 @@ export class UpdateDailyPlanWorkTimeType1715002586455 implements MigrationInterf * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1715604925998-AlterIssueTypeAddColumnIsDefault.ts b/packages/core/src/lib/database/migrations/1715604925998-AlterIssueTypeAddColumnIsDefault.ts index ad6a33ec4a5..146d03746ce 100644 --- a/packages/core/src/lib/database/migrations/1715604925998-AlterIssueTypeAddColumnIsDefault.ts +++ b/packages/core/src/lib/database/migrations/1715604925998-AlterIssueTypeAddColumnIsDefault.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AlterIssueTypeAddColumnIsDefault1715604925998 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AlterIssueTypeAddColumnIsDefault1715604925998 implements MigrationI * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1715680147522-AlterOrganizationTeamAddShareProfileViewField.ts b/packages/core/src/lib/database/migrations/1715680147522-AlterOrganizationTeamAddShareProfileViewField.ts index 047389a78e4..09eeca54c2a 100644 --- a/packages/core/src/lib/database/migrations/1715680147522-AlterOrganizationTeamAddShareProfileViewField.ts +++ b/packages/core/src/lib/database/migrations/1715680147522-AlterOrganizationTeamAddShareProfileViewField.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AlterOrganizationTeamAddShareProfileViewField1715680147522 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AlterOrganizationTeamAddShareProfileViewField1715680147522 implemen * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1716206591055-AddTimeFormatToUserEntity.ts b/packages/core/src/lib/database/migrations/1716206591055-AddTimeFormatToUserEntity.ts index 966d9dc3232..054b676f03b 100644 --- a/packages/core/src/lib/database/migrations/1716206591055-AddTimeFormatToUserEntity.ts +++ b/packages/core/src/lib/database/migrations/1716206591055-AddTimeFormatToUserEntity.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AddTimeFormatToUserEntity1716206591055 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AddTimeFormatToUserEntity1716206591055 implements MigrationInterfac * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1716839592949-CreateSocialAccountEntity.ts b/packages/core/src/lib/database/migrations/1716839592949-CreateSocialAccountEntity.ts index 39e15ec3c45..d7e65ead33d 100644 --- a/packages/core/src/lib/database/migrations/1716839592949-CreateSocialAccountEntity.ts +++ b/packages/core/src/lib/database/migrations/1716839592949-CreateSocialAccountEntity.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class CreateSocialAccountEntity1716839592949 implements MigrationInterface { @@ -11,7 +11,7 @@ export class CreateSocialAccountEntity1716839592949 implements MigrationInterfac * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1718386634024-AlterOrganizationTeamAddRequirePlanToTrackField.ts b/packages/core/src/lib/database/migrations/1718386634024-AlterOrganizationTeamAddRequirePlanToTrackField.ts index 7b0590a9569..974a220733d 100644 --- a/packages/core/src/lib/database/migrations/1718386634024-AlterOrganizationTeamAddRequirePlanToTrackField.ts +++ b/packages/core/src/lib/database/migrations/1718386634024-AlterOrganizationTeamAddRequirePlanToTrackField.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AlterOrganizationTeamAddRequirePlanToTrackField1718386634024 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AlterOrganizationTeamAddRequirePlanToTrackField1718386634024 implem * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1719937371312-AlterOrganizationGithubRepositoryEntityTable.ts b/packages/core/src/lib/database/migrations/1719937371312-AlterOrganizationGithubRepositoryEntityTable.ts index d3d600e5b17..b5079ff182b 100644 --- a/packages/core/src/lib/database/migrations/1719937371312-AlterOrganizationGithubRepositoryEntityTable.ts +++ b/packages/core/src/lib/database/migrations/1719937371312-AlterOrganizationGithubRepositoryEntityTable.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AlterOrganizationGithubRepositoryEntityTable1719937371312 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AlterOrganizationGithubRepositoryEntityTable1719937371312 implement * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1719994643595-AlterOrganizationGithubRepositoryIssueEntityTable.ts b/packages/core/src/lib/database/migrations/1719994643595-AlterOrganizationGithubRepositoryIssueEntityTable.ts index 78ab79cde06..e05922ea3bf 100644 --- a/packages/core/src/lib/database/migrations/1719994643595-AlterOrganizationGithubRepositoryIssueEntityTable.ts +++ b/packages/core/src/lib/database/migrations/1719994643595-AlterOrganizationGithubRepositoryIssueEntityTable.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AlterOrganizationGithubRepositoryIssueEntityTable1719994643595 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AlterOrganizationGithubRepositoryIssueEntityTable1719994643595 impl * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1720177290238-AlterOrganizationProjectCustomEntityFields.ts b/packages/core/src/lib/database/migrations/1720177290238-AlterOrganizationProjectCustomEntityFields.ts index cc5b72fcf61..daf3cee925c 100644 --- a/packages/core/src/lib/database/migrations/1720177290238-AlterOrganizationProjectCustomEntityFields.ts +++ b/packages/core/src/lib/database/migrations/1720177290238-AlterOrganizationProjectCustomEntityFields.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AlterOrganizationProjectCustomEntityFields1720177290238 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AlterOrganizationProjectCustomEntityFields1720177290238 implements * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1720852356593-CreateProductReviewTable.ts b/packages/core/src/lib/database/migrations/1720852356593-CreateProductReviewTable.ts index d8aeaa58a7c..1db91411a23 100644 --- a/packages/core/src/lib/database/migrations/1720852356593-CreateProductReviewTable.ts +++ b/packages/core/src/lib/database/migrations/1720852356593-CreateProductReviewTable.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class CreateProductReviewTable1720852356593 implements MigrationInterface { @@ -11,7 +11,7 @@ export class CreateProductReviewTable1720852356593 implements MigrationInterface * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1723645947040-AlterTaskStatusesAddWorkFlowFields.ts b/packages/core/src/lib/database/migrations/1723645947040-AlterTaskStatusesAddWorkFlowFields.ts index 1c17933c968..d24feaef33c 100644 --- a/packages/core/src/lib/database/migrations/1723645947040-AlterTaskStatusesAddWorkFlowFields.ts +++ b/packages/core/src/lib/database/migrations/1723645947040-AlterTaskStatusesAddWorkFlowFields.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AlterTaskStatusesAddWorkFlowFields1723645947040 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AlterTaskStatusesAddWorkFlowFields1723645947040 implements Migratio * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1724062299873-AlterDailyPlanAddTeamRelation.ts b/packages/core/src/lib/database/migrations/1724062299873-AlterDailyPlanAddTeamRelation.ts index 5dd891c5fc4..afde79ade31 100644 --- a/packages/core/src/lib/database/migrations/1724062299873-AlterDailyPlanAddTeamRelation.ts +++ b/packages/core/src/lib/database/migrations/1724062299873-AlterDailyPlanAddTeamRelation.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AlterDailyPlanAddTeamRelation1724062299873 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AlterDailyPlanAddTeamRelation1724062299873 implements MigrationInte * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1724929664505-CreateProjectModuleTable.ts b/packages/core/src/lib/database/migrations/1724929664505-CreateProjectModuleTable.ts index 4bf51f00163..35b4daf5f00 100644 --- a/packages/core/src/lib/database/migrations/1724929664505-CreateProjectModuleTable.ts +++ b/packages/core/src/lib/database/migrations/1724929664505-CreateProjectModuleTable.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class CreateProjectModuleTable1724929664505 implements MigrationInterface { @@ -11,7 +11,7 @@ export class CreateProjectModuleTable1724929664505 implements MigrationInterface * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1725788544671-AlterTaskEntityAddIsDraftField.ts b/packages/core/src/lib/database/migrations/1725788544671-AlterTaskEntityAddIsDraftField.ts index 58100e176ea..72460a54f58 100644 --- a/packages/core/src/lib/database/migrations/1725788544671-AlterTaskEntityAddIsDraftField.ts +++ b/packages/core/src/lib/database/migrations/1725788544671-AlterTaskEntityAddIsDraftField.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AlterTaskEntityAddIsDraftField1725788544671 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AlterTaskEntityAddIsDraftField1725788544671 implements MigrationInt * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1725794120289-AlterTaskStatusEntityAddingDefaultField.ts b/packages/core/src/lib/database/migrations/1725794120289-AlterTaskStatusEntityAddingDefaultField.ts index db19fe72dd2..3e25c44ebc4 100644 --- a/packages/core/src/lib/database/migrations/1725794120289-AlterTaskStatusEntityAddingDefaultField.ts +++ b/packages/core/src/lib/database/migrations/1725794120289-AlterTaskStatusEntityAddingDefaultField.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AlterTaskStatusEntityAddingDefaultField1725794120289 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AlterTaskStatusEntityAddingDefaultField1725794120289 implements Mig * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1725879899378-AlterBaseEntityAddArchivedAtField.ts b/packages/core/src/lib/database/migrations/1725879899378-AlterBaseEntityAddArchivedAtField.ts index 47b827e1723..630976c288a 100644 --- a/packages/core/src/lib/database/migrations/1725879899378-AlterBaseEntityAddArchivedAtField.ts +++ b/packages/core/src/lib/database/migrations/1725879899378-AlterBaseEntityAddArchivedAtField.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AlterBaseEntityAddArchivedAtField1725879899378 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AlterBaseEntityAddArchivedAtField1725879899378 implements Migration * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1725950092620-AddFavoriteTable.ts b/packages/core/src/lib/database/migrations/1725950092620-AddFavoriteTable.ts index 01fa273ec3a..122a3b3e395 100644 --- a/packages/core/src/lib/database/migrations/1725950092620-AddFavoriteTable.ts +++ b/packages/core/src/lib/database/migrations/1725950092620-AddFavoriteTable.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AddFavoriteTable1725950092620 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AddFavoriteTable1725950092620 implements MigrationInterface { * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1725956395183-AddColumnsToOrganizationProjectEntity.ts b/packages/core/src/lib/database/migrations/1725956395183-AddColumnsToOrganizationProjectEntity.ts index b38a58b6ab2..2fc9667a847 100644 --- a/packages/core/src/lib/database/migrations/1725956395183-AddColumnsToOrganizationProjectEntity.ts +++ b/packages/core/src/lib/database/migrations/1725956395183-AddColumnsToOrganizationProjectEntity.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AddColumnsToOrganizationProjectEntity1725956395183 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AddColumnsToOrganizationProjectEntity1725956395183 implements Migra * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1726037588814-AddColumnsToOrganizationTeamEmployeeEntity.ts b/packages/core/src/lib/database/migrations/1726037588814-AddColumnsToOrganizationTeamEmployeeEntity.ts index 12c48db4218..6615c4d161a 100644 --- a/packages/core/src/lib/database/migrations/1726037588814-AddColumnsToOrganizationTeamEmployeeEntity.ts +++ b/packages/core/src/lib/database/migrations/1726037588814-AddColumnsToOrganizationTeamEmployeeEntity.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AddColumnsToOrganizationTeamEmployeeEntity1726037588814 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AddColumnsToOrganizationTeamEmployeeEntity1726037588814 implements * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1726202213012-CreateCommentTable.ts b/packages/core/src/lib/database/migrations/1726202213012-CreateCommentTable.ts index ab37c4e3ef1..4bb7a45be04 100644 --- a/packages/core/src/lib/database/migrations/1726202213012-CreateCommentTable.ts +++ b/packages/core/src/lib/database/migrations/1726202213012-CreateCommentTable.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class CreateCommentTable1726202213012 implements MigrationInterface { @@ -11,7 +11,7 @@ export class CreateCommentTable1726202213012 implements MigrationInterface { * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1726206783506-MigrateEmailTemplates.ts b/packages/core/src/lib/database/migrations/1726206783506-MigrateEmailTemplates.ts index 0ea8fcec343..6e45cd33743 100644 --- a/packages/core/src/lib/database/migrations/1726206783506-MigrateEmailTemplates.ts +++ b/packages/core/src/lib/database/migrations/1726206783506-MigrateEmailTemplates.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { EmailTemplateEnum } from '@gauzy/contracts'; import { EmailTemplateUtils } from '../../email-template/utils'; @@ -12,7 +12,7 @@ export class MigrateEmailTemplates1726206783506 implements MigrationInterface { * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(`${this.name} started running!`)); + console.log(chalk.yellow(this.name + ' start running!')); // Migrate each template try { diff --git a/packages/core/src/lib/database/migrations/1726231843184-CreateReactionTable.ts b/packages/core/src/lib/database/migrations/1726231843184-CreateReactionTable.ts index 0117c781ce2..46285c29c83 100644 --- a/packages/core/src/lib/database/migrations/1726231843184-CreateReactionTable.ts +++ b/packages/core/src/lib/database/migrations/1726231843184-CreateReactionTable.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class CreateReactionTable1726231843184 implements MigrationInterface { @@ -11,7 +11,7 @@ export class CreateReactionTable1726231843184 implements MigrationInterface { * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1726506479984-AlterFavoriteEntityIndexing.ts b/packages/core/src/lib/database/migrations/1726506479984-AlterFavoriteEntityIndexing.ts index 73bb56c9e2b..f0384f93d0c 100644 --- a/packages/core/src/lib/database/migrations/1726506479984-AlterFavoriteEntityIndexing.ts +++ b/packages/core/src/lib/database/migrations/1726506479984-AlterFavoriteEntityIndexing.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AlterFavoriteEntityIndexing1726506479984 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AlterFavoriteEntityIndexing1726506479984 implements MigrationInterf * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1726509769379-AddColumnsToOrganizationProjectEmployeeEntity.ts b/packages/core/src/lib/database/migrations/1726509769379-AddColumnsToOrganizationProjectEmployeeEntity.ts index 4722b6745f7..59c8d795f07 100644 --- a/packages/core/src/lib/database/migrations/1726509769379-AddColumnsToOrganizationProjectEmployeeEntity.ts +++ b/packages/core/src/lib/database/migrations/1726509769379-AddColumnsToOrganizationProjectEmployeeEntity.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { v4 as uuidv4 } from 'uuid'; import { DatabaseTypeEnum } from '@gauzy/config'; @@ -12,7 +12,7 @@ export class AddColumnsToOrganizationProjectEmployeeEntity1726509769379 implemen * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1726648418130-CreateActivityLogTable.ts b/packages/core/src/lib/database/migrations/1726648418130-CreateActivityLogTable.ts index a135a01e437..0c109b8ec89 100644 --- a/packages/core/src/lib/database/migrations/1726648418130-CreateActivityLogTable.ts +++ b/packages/core/src/lib/database/migrations/1726648418130-CreateActivityLogTable.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class CreateActivityLogTable1726648418130 implements MigrationInterface { @@ -11,7 +11,7 @@ export class CreateActivityLogTable1726648418130 implements MigrationInterface { * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1727152443794-CreateProjectModuleTaskTable.ts b/packages/core/src/lib/database/migrations/1727152443794-CreateProjectModuleTaskTable.ts index e9a24d95d86..3a4a4d36b7e 100644 --- a/packages/core/src/lib/database/migrations/1727152443794-CreateProjectModuleTaskTable.ts +++ b/packages/core/src/lib/database/migrations/1727152443794-CreateProjectModuleTaskTable.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class CreateProjectModuleTaskTable1727152443794 implements MigrationInterface { @@ -11,7 +11,7 @@ export class CreateProjectModuleTaskTable1727152443794 implements MigrationInter * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1727271308311-AddIndexingOrganizationProjectEmployeeEntity.ts b/packages/core/src/lib/database/migrations/1727271308311-AddIndexingOrganizationProjectEmployeeEntity.ts index 33b20502304..f4b4503ef75 100644 --- a/packages/core/src/lib/database/migrations/1727271308311-AddIndexingOrganizationProjectEmployeeEntity.ts +++ b/packages/core/src/lib/database/migrations/1727271308311-AddIndexingOrganizationProjectEmployeeEntity.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AddIndexingOrganizationProjectEmployeeEntity1727271308311 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AddIndexingOrganizationProjectEmployeeEntity1727271308311 implement * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1727284713380-AlterActorTypeInCommentAndActivityLogEntities.ts b/packages/core/src/lib/database/migrations/1727284713380-AlterActorTypeInCommentAndActivityLogEntities.ts index 4c4120a6b06..b82f9f7f16d 100644 --- a/packages/core/src/lib/database/migrations/1727284713380-AlterActorTypeInCommentAndActivityLogEntities.ts +++ b/packages/core/src/lib/database/migrations/1727284713380-AlterActorTypeInCommentAndActivityLogEntities.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AlterActorTypeInCommentAndActivityLogEntities1727284713380 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AlterActorTypeInCommentAndActivityLogEntities1727284713380 implemen * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1727954184608-AlterTokenColumnTypeToTextInPasswordResetTable.ts b/packages/core/src/lib/database/migrations/1727954184608-AlterTokenColumnTypeToTextInPasswordResetTable.ts index 69767aba691..bd8d7119cb4 100644 --- a/packages/core/src/lib/database/migrations/1727954184608-AlterTokenColumnTypeToTextInPasswordResetTable.ts +++ b/packages/core/src/lib/database/migrations/1727954184608-AlterTokenColumnTypeToTextInPasswordResetTable.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AlterTokenColumnTypeToTextInPasswordResetTable1727954184608 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AlterTokenColumnTypeToTextInPasswordResetTable1727954184608 impleme * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1728024420021-MigratePasswordResetEmailTemplates.ts b/packages/core/src/lib/database/migrations/1728024420021-MigratePasswordResetEmailTemplates.ts index 4639b0dfa95..26bbabee274 100644 --- a/packages/core/src/lib/database/migrations/1728024420021-MigratePasswordResetEmailTemplates.ts +++ b/packages/core/src/lib/database/migrations/1728024420021-MigratePasswordResetEmailTemplates.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { EmailTemplateEnum } from '@gauzy/contracts'; import { EmailTemplateUtils } from '../../email-template/utils'; @@ -12,7 +12,7 @@ export class MigratePasswordResetEmailTemplates1728024420021 implements Migratio * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(`${this.name} started running!`)); + console.log(chalk.yellow(this.name + ' start running!')); // Migrate each template try { diff --git a/packages/core/src/lib/database/migrations/1728301971790-MigrateOrganizationSprintsRelatedEntities.ts b/packages/core/src/lib/database/migrations/1728301971790-MigrateOrganizationSprintsRelatedEntities.ts index b2eadc4c0b7..094cf503a9d 100644 --- a/packages/core/src/lib/database/migrations/1728301971790-MigrateOrganizationSprintsRelatedEntities.ts +++ b/packages/core/src/lib/database/migrations/1728301971790-MigrateOrganizationSprintsRelatedEntities.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class MigrateOrganizationSprintsRelatedEntities1728301971790 implements MigrationInterface { @@ -11,7 +11,7 @@ export class MigrateOrganizationSprintsRelatedEntities1728301971790 implements M * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1728461410740-CreateTableIssueView.ts b/packages/core/src/lib/database/migrations/1728461410740-CreateTableIssueView.ts index 917c0eaebf0..8b961c7a495 100644 --- a/packages/core/src/lib/database/migrations/1728461410740-CreateTableIssueView.ts +++ b/packages/core/src/lib/database/migrations/1728461410740-CreateTableIssueView.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class CreateTableIssueView1728461410740 implements MigrationInterface { @@ -11,7 +11,7 @@ export class CreateTableIssueView1728461410740 implements MigrationInterface { * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1728479473369-AddStandardWorkHoursPerDayColumnToOrganizationTable.ts b/packages/core/src/lib/database/migrations/1728479473369-AddStandardWorkHoursPerDayColumnToOrganizationTable.ts index 56199a44fa5..3c612e9fc75 100644 --- a/packages/core/src/lib/database/migrations/1728479473369-AddStandardWorkHoursPerDayColumnToOrganizationTable.ts +++ b/packages/core/src/lib/database/migrations/1728479473369-AddStandardWorkHoursPerDayColumnToOrganizationTable.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AddStandardWorkHoursPerDayColumnToOrganizationTable1728479473369 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AddStandardWorkHoursPerDayColumnToOrganizationTable1728479473369 im * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1728482634174-AddStandardWorkHoursPerDayColumnToTenantTable.ts b/packages/core/src/lib/database/migrations/1728482634174-AddStandardWorkHoursPerDayColumnToTenantTable.ts index f11b59b0baf..d301c58f538 100644 --- a/packages/core/src/lib/database/migrations/1728482634174-AddStandardWorkHoursPerDayColumnToTenantTable.ts +++ b/packages/core/src/lib/database/migrations/1728482634174-AddStandardWorkHoursPerDayColumnToTenantTable.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AddStandardWorkHoursPerDayColumnToTenantTable1728482634174 implements MigrationInterface { @@ -11,7 +11,7 @@ export class AddStandardWorkHoursPerDayColumnToTenantTable1728482634174 implemen * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1728645657957-CreateApiCallLogTable.ts b/packages/core/src/lib/database/migrations/1728645657957-CreateApiCallLogTable.ts index f55eb92dfa7..ab6f8aab994 100644 --- a/packages/core/src/lib/database/migrations/1728645657957-CreateApiCallLogTable.ts +++ b/packages/core/src/lib/database/migrations/1728645657957-CreateApiCallLogTable.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class CreateApiCallLogTable1728645657957 implements MigrationInterface { @@ -11,7 +11,7 @@ export class CreateApiCallLogTable1728645657957 implements MigrationInterface { * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1728798743598-CreateResourceLinkTable.ts b/packages/core/src/lib/database/migrations/1728798743598-CreateResourceLinkTable.ts index bded25a05c1..d6998a7f5a0 100644 --- a/packages/core/src/lib/database/migrations/1728798743598-CreateResourceLinkTable.ts +++ b/packages/core/src/lib/database/migrations/1728798743598-CreateResourceLinkTable.ts @@ -1,5 +1,5 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class CreateResourceLinkTable1728798743598 implements MigrationInterface { @@ -11,7 +11,7 @@ export class CreateResourceLinkTable1728798743598 implements MigrationInterface * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - console.log(yellow(this.name + ' start running!')); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1729861943822-AlterConstraintsForResourceLinkTable.ts b/packages/core/src/lib/database/migrations/1729861943822-AlterConstraintsForResourceLinkTable.ts index 7a9533ab4d5..0e152d6fabd 100644 --- a/packages/core/src/lib/database/migrations/1729861943822-AlterConstraintsForResourceLinkTable.ts +++ b/packages/core/src/lib/database/migrations/1729861943822-AlterConstraintsForResourceLinkTable.ts @@ -1,6 +1,5 @@ -import { Logger } from '@nestjs/common'; import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AlterConstraintsForResourceLinkTable1729861943822 implements MigrationInterface { @@ -12,7 +11,7 @@ export class AlterConstraintsForResourceLinkTable1729861943822 implements Migrat * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - Logger.debug(yellow(this.name + ' start running!'), 'Migration'); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1729867054227-AddTimeTrackingPermissionsColumnsToEmployeeTable.ts b/packages/core/src/lib/database/migrations/1729867054227-AddTimeTrackingPermissionsColumnsToEmployeeTable.ts index d24fe4f5013..1f6326d2298 100644 --- a/packages/core/src/lib/database/migrations/1729867054227-AddTimeTrackingPermissionsColumnsToEmployeeTable.ts +++ b/packages/core/src/lib/database/migrations/1729867054227-AddTimeTrackingPermissionsColumnsToEmployeeTable.ts @@ -1,6 +1,5 @@ -import { Logger } from '@nestjs/common'; import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AddTimeTrackingPermissionsColumnsToEmployeeTable1729867054227 implements MigrationInterface { @@ -12,7 +11,7 @@ export class AddTimeTrackingPermissionsColumnsToEmployeeTable1729867054227 imple * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - Logger.debug(yellow(this.name + ' start running!'), 'Migration'); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1732537145609-CreateMentionTable.ts b/packages/core/src/lib/database/migrations/1732537145609-CreateMentionTable.ts index df68208f081..ffa01130598 100644 --- a/packages/core/src/lib/database/migrations/1732537145609-CreateMentionTable.ts +++ b/packages/core/src/lib/database/migrations/1732537145609-CreateMentionTable.ts @@ -1,6 +1,5 @@ -import { Logger } from '@nestjs/common'; import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class CreateMentionTable1732537145609 implements MigrationInterface { @@ -12,7 +11,7 @@ export class CreateMentionTable1732537145609 implements MigrationInterface { * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - Logger.debug(yellow(this.name + ' start running!'), 'Migration'); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1732685369636-CreateSubscriptionTable.ts b/packages/core/src/lib/database/migrations/1732685369636-CreateSubscriptionTable.ts index aa01866e617..9200866d390 100644 --- a/packages/core/src/lib/database/migrations/1732685369636-CreateSubscriptionTable.ts +++ b/packages/core/src/lib/database/migrations/1732685369636-CreateSubscriptionTable.ts @@ -1,6 +1,5 @@ -import { Logger } from '@nestjs/common'; import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class CreateSubscriptionTable1732685369636 implements MigrationInterface { @@ -12,7 +11,7 @@ export class CreateSubscriptionTable1732685369636 implements MigrationInterface * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - Logger.debug(yellow(this.name + ' start running!'), 'Migration'); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1733304689932-UpdateMembersRelationToProjectModule.ts b/packages/core/src/lib/database/migrations/1733304689932-UpdateMembersRelationToProjectModule.ts index 78c7b5d8e1e..6de71aa2012 100644 --- a/packages/core/src/lib/database/migrations/1733304689932-UpdateMembersRelationToProjectModule.ts +++ b/packages/core/src/lib/database/migrations/1733304689932-UpdateMembersRelationToProjectModule.ts @@ -1,6 +1,5 @@ -import { Logger } from '@nestjs/common'; import { MigrationInterface, QueryRunner } from "typeorm"; -import { yellow } from "chalk"; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from "@gauzy/config"; export class UpdateMembersRelationToProjectModule1733304689932 implements MigrationInterface { @@ -13,7 +12,7 @@ export class UpdateMembersRelationToProjectModule1733304689932 implements Migrat * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - Logger.debug(yellow(this.name + ' start running!'), 'Migration'); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1733566941638-CreateScreeningTaskEntity.ts b/packages/core/src/lib/database/migrations/1733566941638-CreateScreeningTaskEntity.ts index fe8bf396932..94ef9c85362 100644 --- a/packages/core/src/lib/database/migrations/1733566941638-CreateScreeningTaskEntity.ts +++ b/packages/core/src/lib/database/migrations/1733566941638-CreateScreeningTaskEntity.ts @@ -1,6 +1,5 @@ -import { Logger } from '@nestjs/common'; import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class CreateScreeningTaskEntity1733566941638 implements MigrationInterface { @@ -12,7 +11,7 @@ export class CreateScreeningTaskEntity1733566941638 implements MigrationInterfac * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - Logger.debug(yellow(this.name + ' start running!'), 'Migration'); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: diff --git a/packages/core/src/lib/database/migrations/1734434773692-AlterEmployeeSettingAddSettingJsonFields.ts b/packages/core/src/lib/database/migrations/1734434773692-AlterEmployeeSettingAddSettingJsonFields.ts index 4683436d667..f436b8304ac 100644 --- a/packages/core/src/lib/database/migrations/1734434773692-AlterEmployeeSettingAddSettingJsonFields.ts +++ b/packages/core/src/lib/database/migrations/1734434773692-AlterEmployeeSettingAddSettingJsonFields.ts @@ -1,6 +1,5 @@ -import { Logger } from '@nestjs/common'; import { MigrationInterface, QueryRunner } from 'typeorm'; -import { yellow } from 'chalk'; +import * as chalk from 'chalk'; import { DatabaseTypeEnum } from '@gauzy/config'; export class AlterEmployeeSettingAddSettingJsonFields1734434773692 implements MigrationInterface { @@ -12,7 +11,7 @@ export class AlterEmployeeSettingAddSettingJsonFields1734434773692 implements Mi * @param queryRunner */ public async up(queryRunner: QueryRunner): Promise { - Logger.debug(yellow(this.name + ' start running!'), 'Migration'); + console.log(chalk.yellow(this.name + ' start running!')); switch (queryRunner.connection.options.type) { case DatabaseTypeEnum.sqlite: