diff --git a/packages/core/src/lib/database/migrations/1679765443208-MigrateRolePermisisons.ts b/packages/core/src/lib/database/migrations/1679765443208-MigrateRolePermisisons.ts index 255b19ebb5..8ba68a8c16 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 660010fa3d..e608ac611f 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 2e36635019..504b10c8e5 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 977d78730f..d20374d25d 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 8d3f0a7c11..4473ebe984 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 f4fd6650a2..b0ded95fd1 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 c484e58eb4..7b9ea42b42 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 8a587c26d2..d214ef79f6 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 d988cef04e..d91d440141 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 086e4e0b7c..5d3d9973d2 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 ad6a33ec4a..146d03746c 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 047389a78e..09eeca54c2 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 966d9dc323..054b676f03 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 39e15ec3c4..d7e65ead33 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 7b0590a956..974a220733 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 d3d600e5b1..b5079ff182 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 78ab79cde0..e05922ea3b 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 cc5b72fcf6..daf3cee925 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 d8aeaa58a7..1db91411a2 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 1c17933c96..d24feaef33 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 5dd891c5fc..afde79ade3 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 4bf51f0016..35b4daf5f0 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 58100e176e..72460a54f5 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 db19fe72dd..3e25c44ebc 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 47b827e172..630976c288 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 01fa273ec3..122a3b3e39 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 b38a58b6ab..2fc9667a84 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 12c48db421..6615c4d161 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 ab37c4e3ef..4bb7a45be0 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 0ea8fcec34..6e45cd3374 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 0117c781ce..46285c29c8 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 73bb56c9e2..f0384f93d0 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 4722b6745f..59c8d795f0 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 a135a01e43..0c109b8ec8 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 e9a24d95d8..3a4a4d36b7 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 33b2050230..f4b4503ef7 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 4c4120a6b0..b82f9f7f16 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 69767aba69..bd8d7119cb 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 4639b0dfa9..26bbabee27 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 b2eadc4c0b..094cf503a9 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 917c0eaebf..8b961c7a49 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 56199a44fa..3c612e9fc7 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 f11b59b0ba..d301c58f53 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 f55eb92dfa..ab6f8aab99 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 bded25a05c..d6998a7f5a 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 7a9533ab4d..0e152d6fab 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 d24fe4f501..1f6326d229 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 df68208f08..ffa0113059 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 aa01866e61..9200866d39 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 78c7b5d8e1..6de71aa201 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 fe8bf39693..94ef9c8536 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 4683436d66..f436b8304a 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: