lint: migrate prettier to oxfmt (#20783)
Most changes are `implements` being unwrapped this is not a oxfmt regression Prettier in 3.7 (we're on 3.1) changed this behaviour prettier blog [post](https://prettier.io/blog/2025/11/27/3.7.0#change-18094) This unifies our linting tooling --------- Co-authored-by: github-actions <github-actions@twenty.com> Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { type FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('1.21.0', 1775129420309)
|
||||
export class AddViewFieldGroupIdIndexOnViewFieldFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddViewFieldGroupIdIndexOnViewFieldFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE INDEX IF NOT EXISTS "IDX_VIEW_FIELD_VIEW_FIELD_GROUP_ID" ON "core"."viewField" ("viewFieldGroupId")`,
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { type FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('1.21.0', 1775165049548)
|
||||
export class MigrateMessagingCalendarToCoreFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class MigrateMessagingCalendarToCoreFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."messageFolder" ALTER COLUMN "parentFolderId" TYPE character varying`,
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { type FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('1.21.0', 1775200000000)
|
||||
export class AddEmailThreadWidgetTypeFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddEmailThreadWidgetTypeFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TYPE "core"."pageLayoutWidget_type_enum" RENAME TO "pageLayoutWidget_type_enum_old"`,
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('1.22.0', 1775749486425)
|
||||
export class AddPermissionFlagRoleIdIndexFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddPermissionFlagRoleIdIndexFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
'CREATE INDEX IF NOT EXISTS "IDX_PERMISSION_FLAG_ROLE_ID" ON "core"."permissionFlag" ("roleId") ',
|
||||
|
||||
+1
-3
@@ -15,9 +15,7 @@ const TABLES = [
|
||||
];
|
||||
|
||||
@RegisteredInstanceCommand('1.22.0', 1775758621017)
|
||||
export class AddWorkspaceIdToIndirectEntitiesFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddWorkspaceIdToIndirectEntitiesFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
for (const table of TABLES) {
|
||||
await queryRunner.query(
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('1.22.0', 1775761294897)
|
||||
export class AddWorkspaceIdIndexesAndFksFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddWorkspaceIdIndexesAndFksFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
'CREATE INDEX IF NOT EXISTS "IDX_78ae6cfe5f49a76c4bf842ad58" ON "core"."applicationVariable" ("workspaceId") ',
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('1.22.0', 1775804361516)
|
||||
export class DropObjectMetadataDataSourceFkFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class DropObjectMetadataDataSourceFkFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
'ALTER TABLE "core"."objectMetadata" DROP CONSTRAINT "FK_0b19dd17369574578bc18c405b2"',
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('1.22.0', 1776078919203)
|
||||
export class AddCreditBalanceToBillingCustomerFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddCreditBalanceToBillingCustomerFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
const tableExists = await queryRunner.query(
|
||||
`SELECT 1 FROM pg_tables WHERE schemaname = 'core' AND tablename = 'billingCustomer'`,
|
||||
|
||||
+1
-3
@@ -56,9 +56,7 @@ const BACKFILL_DEFINITIONS: BackfillDefinition[] = [
|
||||
const TABLES = BACKFILL_DEFINITIONS.map((definition) => definition.table);
|
||||
|
||||
@RegisteredInstanceCommand('1.22.0', 1775758621018, { type: 'slow' })
|
||||
export class BackfillWorkspaceIdOnIndirectEntitiesSlowInstanceCommand
|
||||
implements SlowInstanceCommand
|
||||
{
|
||||
export class BackfillWorkspaceIdOnIndirectEntitiesSlowInstanceCommand implements SlowInstanceCommand {
|
||||
async runDataMigration(dataSource: DataSource): Promise<void> {
|
||||
for (const { table, parentTable, foreignKey } of BACKFILL_DEFINITIONS) {
|
||||
await dataSource.query(
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('1.23.0', 1775654781000)
|
||||
export class AddConditionalAvailabilityExpressionToPageLayoutWidgetFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddConditionalAvailabilityExpressionToPageLayoutWidgetFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."pageLayoutWidget" ADD COLUMN IF NOT EXISTS "conditionalAvailabilityExpression" varchar`,
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { type FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('1.23.0', 1775752190522)
|
||||
export class AddTableWidgetViewTypeFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddTableWidgetViewTypeFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TYPE "core"."view_type_enum" ADD VALUE IF NOT EXISTS 'TABLE_WIDGET' AFTER 'FIELDS_WIDGET'`,
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('1.23.0', 1775752781995)
|
||||
export class AddStandalonePageFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddStandalonePageFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
'ALTER TABLE "core"."navigationMenuItem" ADD "pageLayoutId" uuid',
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('1.23.0', 1776090711153)
|
||||
export class AddGlobalObjectContextToCommandMenuItemAvailabilityTypeFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddGlobalObjectContextToCommandMenuItemAvailabilityTypeFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
'ALTER TYPE "core"."commandMenuItem_availabilitytype_enum" RENAME TO "commandMenuItem_availabilitytype_enum_old"',
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('1.23.0', 1776168404836)
|
||||
export class AddPageLayoutIdToCommandMenuItemFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddPageLayoutIdToCommandMenuItemFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
'ALTER TABLE "core"."commandMenuItem" ADD "pageLayoutId" uuid',
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('1.23.0', 1785000000000)
|
||||
export class DropWorkspaceVersionColumnFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class DropWorkspaceVersionColumnFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."workspace" DROP COLUMN IF EXISTS "version"`,
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.1.0', 1776886452831)
|
||||
export class AddIsPreInstalledToApplicationRegistrationFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddIsPreInstalledToApplicationRegistrationFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
'ALTER TABLE "core"."applicationRegistration" ADD "isPreInstalled" boolean NOT NULL DEFAULT false',
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.1.0', 1777012800000)
|
||||
export class AddProviderExecutedToAgentMessagePartFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddProviderExecutedToAgentMessagePartFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
'ALTER TABLE "core"."agentMessagePart" ADD "providerExecuted" boolean',
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { SlowInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/slow-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.1.0', 1795000002000, { type: 'slow' })
|
||||
export class BackfillPageLayoutWidgetPositionSlowInstanceCommand
|
||||
implements SlowInstanceCommand
|
||||
{
|
||||
export class BackfillPageLayoutWidgetPositionSlowInstanceCommand implements SlowInstanceCommand {
|
||||
async runDataMigration(dataSource: DataSource): Promise<void> {
|
||||
await dataSource.query(
|
||||
`UPDATE "core"."pageLayoutWidget"
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.2.0', 1777455269302)
|
||||
export class AddCacheTokensToAgentChatThreadFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddCacheTokensToAgentChatThreadFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."agentChatThread" ADD "totalCacheReadTokens" bigint NOT NULL DEFAULT 0`,
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.2.0', 1777539664664)
|
||||
export class AddLogoToApplicationFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddLogoToApplicationFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query('ALTER TABLE "core"."application" ADD "logo" text');
|
||||
}
|
||||
|
||||
+1
-3
@@ -20,9 +20,7 @@ import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/
|
||||
// `IF NOT EXISTS`), so cross-upgrade callers see it as a no-op while
|
||||
// fresh-from-2.5 install paths still create the column there as before.
|
||||
@RegisteredInstanceCommand('2.3.0', 1747234200000)
|
||||
export class AddSubFieldNameToViewSortEarlyFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddSubFieldNameToViewSortEarlyFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."viewSort" ADD COLUMN IF NOT EXISTS "subFieldName" character varying`,
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.3.0', 1747234300000)
|
||||
export class AddRelationTargetFieldMetadataIdToViewFilterEarlyFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddRelationTargetFieldMetadataIdToViewFilterEarlyFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."viewFilter" ADD COLUMN IF NOT EXISTS "relationTargetFieldMetadataId" uuid`,
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.3.0', 1777308014234)
|
||||
export class AddUpgradeMigrationWorkspaceIdIndexFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddUpgradeMigrationWorkspaceIdIndexFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
'CREATE INDEX IF NOT EXISTS "IDX_UPGRADE_MIGRATION_WORKSPACE_ID_NAME_ATTEMPT" ON "core"."upgradeMigration" ("workspaceId", "name", "attempt") WHERE "workspaceId" IS NOT NULL',
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.3.0', 1777682000000)
|
||||
export class AddDeletedAtToAgentChatThreadFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddDeletedAtToAgentChatThreadFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."agentChatThread" ADD "deletedAt" TIMESTAMP WITH TIME ZONE`,
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.3.0', 1777896012579)
|
||||
export class ConnectionProviderSyncableEntityFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class ConnectionProviderSyncableEntityFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "core"."connectionProvider" (
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.3.0', 1777915958318)
|
||||
export class RemoveUserDefaultAvatarUrlFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class RemoveUserDefaultAvatarUrlFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
'ALTER TABLE "core"."user" DROP COLUMN "defaultAvatarUrl"',
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.3.0', 1777966965587)
|
||||
export class TransformApplicationVariableToSyncableEntityFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class TransformApplicationVariableToSyncableEntityFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
'DROP INDEX "core"."IDX_78ae6cfe5f49a76c4bf842ad58"',
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.3.0', 1797000001000)
|
||||
export class AddToolAndWorkflowActionTriggerSettingsFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddToolAndWorkflowActionTriggerSettingsFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."logicFunction" ADD "toolTriggerSettings" jsonb`,
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { SlowInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/slow-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.3.0', 1777966965588, { type: 'slow' })
|
||||
export class BackfillApplicationVariableUniversalIdentifierSlowInstanceCommand
|
||||
implements SlowInstanceCommand
|
||||
{
|
||||
export class BackfillApplicationVariableUniversalIdentifierSlowInstanceCommand implements SlowInstanceCommand {
|
||||
async runDataMigration(dataSource: DataSource): Promise<void> {
|
||||
await dataSource.query(
|
||||
'DELETE FROM "core"."applicationVariable" WHERE "applicationId" IS NULL',
|
||||
|
||||
+1
-3
@@ -6,9 +6,7 @@ import { SlowInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/
|
||||
// isTool=true previously exposed a function on both surfaces (AI tool and
|
||||
// workflow node), so we populate both new triggers when migrating.
|
||||
@RegisteredInstanceCommand('2.3.0', 1797000002000, { type: 'slow' })
|
||||
export class MigrateToolTriggerSettingsSlowInstanceCommand
|
||||
implements SlowInstanceCommand
|
||||
{
|
||||
export class MigrateToolTriggerSettingsSlowInstanceCommand implements SlowInstanceCommand {
|
||||
async runDataMigration(dataSource: DataSource): Promise<void> {
|
||||
const defaultJsonSchema = `'{"type":"object","properties":{}}'::jsonb`;
|
||||
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.4.0', 1747234400000)
|
||||
export class AddRelationTargetFieldMetadataIdToViewFilterEarly2_4FastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddRelationTargetFieldMetadataIdToViewFilterEarly2_4FastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."viewFilter" ADD COLUMN IF NOT EXISTS "relationTargetFieldMetadataId" uuid`,
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.4.0', 1777100000000)
|
||||
export class AddMetadataToBillingPriceFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddMetadataToBillingPriceFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
const tableExists = await queryRunner.query(
|
||||
`SELECT 1 FROM pg_tables WHERE schemaname = 'core' AND tablename = 'billingPrice'`,
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.4.0', 1778256809018)
|
||||
export class AddEmailGroupChannelTypeFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddEmailGroupChannelTypeFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
'ALTER TYPE "core"."messageChannel_type_enum" RENAME TO "messageChannel_type_enum_old"',
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.4.0', 1798000003000)
|
||||
export class AddApplicationIdToPublicDomainFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddApplicationIdToPublicDomainFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."publicDomain" ADD "applicationId" uuid`,
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.5.0', 1747234500000)
|
||||
export class AddRelationTargetFieldMetadataIdToViewFilterEarly2_5FastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddRelationTargetFieldMetadataIdToViewFilterEarly2_5FastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."viewFilter" ADD COLUMN IF NOT EXISTS "relationTargetFieldMetadataId" uuid`,
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.5.0', 1778502963794)
|
||||
export class AddSubFieldNameToViewSortFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddSubFieldNameToViewSortFastInstanceCommand implements FastInstanceCommand {
|
||||
// Idempotent so it can coexist with the early 2.3 instance command
|
||||
// `1747234200000-add-sub-field-name-to-view-sort` (see that file for context).
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.5.0', 1778525104406)
|
||||
export class AddIsInternalMessagesImportEnabledFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddIsInternalMessagesImportEnabledFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
'ALTER TABLE "core"."workspace" ADD COLUMN IF NOT EXISTS "isInternalMessagesImportEnabled" boolean NOT NULL DEFAULT false',
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { type FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.5.0', 1778550000000)
|
||||
export class CreateSigningKeyTableFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class CreateSigningKeyTableFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE IF NOT EXISTS "core"."signingKey" (
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { type FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.5.0', 1798500000000)
|
||||
export class DropPostgresCredentialsTableFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class DropPostgresCredentialsTableFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE IF EXISTS "core"."postgresCredentials" DROP CONSTRAINT IF EXISTS "FK_9494639abc06f9c8c3691bf5d22"`,
|
||||
|
||||
+1
-3
@@ -26,9 +26,7 @@ const isPlaintext = (value: string | null): value is string =>
|
||||
isDefined(value) && !value.startsWith(SECRET_ENCRYPTION_ENVELOPE_V2_PREFIX);
|
||||
|
||||
@RegisteredInstanceCommand('2.5.0', 1798000004000, { type: 'slow' })
|
||||
export class EncryptConnectedAccountTokensSlowInstanceCommand
|
||||
implements SlowInstanceCommand
|
||||
{
|
||||
export class EncryptConnectedAccountTokensSlowInstanceCommand implements SlowInstanceCommand {
|
||||
constructor(
|
||||
private readonly connectedAccountTokenEncryptionService: ConnectedAccountTokenEncryptionService,
|
||||
) {}
|
||||
|
||||
+1
-3
@@ -34,9 +34,7 @@ const looksLikeLegacyCtrCiphertext = (value: string): boolean =>
|
||||
LEGACY_CTR_LOOKS_LIKE_BASE64_RE.test(value);
|
||||
|
||||
@RegisteredInstanceCommand('2.5.0', 1798000005000, { type: 'slow' })
|
||||
export class EncryptApplicationVariableSlowInstanceCommand
|
||||
implements SlowInstanceCommand
|
||||
{
|
||||
export class EncryptApplicationVariableSlowInstanceCommand implements SlowInstanceCommand {
|
||||
private readonly logger = new Logger(
|
||||
EncryptApplicationVariableSlowInstanceCommand.name,
|
||||
);
|
||||
|
||||
+1
-3
@@ -19,9 +19,7 @@ type ApplicationRegistrationVariableRow = {
|
||||
};
|
||||
|
||||
@RegisteredInstanceCommand('2.5.0', 1798000006000, { type: 'slow' })
|
||||
export class EncryptApplicationRegistrationVariableSlowInstanceCommand
|
||||
implements SlowInstanceCommand
|
||||
{
|
||||
export class EncryptApplicationRegistrationVariableSlowInstanceCommand implements SlowInstanceCommand {
|
||||
constructor(
|
||||
private readonly secretEncryptionService: SecretEncryptionService,
|
||||
) {}
|
||||
|
||||
+1
-3
@@ -18,9 +18,7 @@ type SigningKeyRow = {
|
||||
};
|
||||
|
||||
@RegisteredInstanceCommand('2.5.0', 1798000007000, { type: 'slow' })
|
||||
export class EncryptSigningKeyPrivateKeysSlowInstanceCommand
|
||||
implements SlowInstanceCommand
|
||||
{
|
||||
export class EncryptSigningKeyPrivateKeysSlowInstanceCommand implements SlowInstanceCommand {
|
||||
constructor(
|
||||
private readonly secretEncryptionService: SecretEncryptionService,
|
||||
) {}
|
||||
|
||||
+1
-3
@@ -14,9 +14,7 @@ import { TypedReflect } from 'src/utils/typed-reflect';
|
||||
type SensitiveConfigRow = { id: string; value: unknown };
|
||||
|
||||
@RegisteredInstanceCommand('2.5.0', 1798000008000, { type: 'slow' })
|
||||
export class EncryptSensitiveConfigStorageSlowInstanceCommand
|
||||
implements SlowInstanceCommand
|
||||
{
|
||||
export class EncryptSensitiveConfigStorageSlowInstanceCommand implements SlowInstanceCommand {
|
||||
constructor(
|
||||
private readonly secretEncryptionService: SecretEncryptionService,
|
||||
) {}
|
||||
|
||||
+1
-3
@@ -22,9 +22,7 @@ type TwoFactorMethodRow = {
|
||||
};
|
||||
|
||||
@RegisteredInstanceCommand('2.5.0', 1798000009000, { type: 'slow' })
|
||||
export class EncryptTotpSecretsSlowInstanceCommand
|
||||
implements SlowInstanceCommand
|
||||
{
|
||||
export class EncryptTotpSecretsSlowInstanceCommand implements SlowInstanceCommand {
|
||||
constructor(
|
||||
private readonly secretEncryptionService: SecretEncryptionService,
|
||||
private readonly simpleSecretEncryptionUtil: SimpleSecretEncryptionUtil,
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.6.0', 1778235340020)
|
||||
export class RenamePermissionFlagToRolePermissionFlagFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class RenamePermissionFlagToRolePermissionFlagFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."permissionFlag" RENAME TO "rolePermissionFlag"`,
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.6.0', 1778235340021)
|
||||
export class PermissionFlagSyncableEntityFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class PermissionFlagSyncableEntityFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE TABLE "core"."permissionFlag" (
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.6.0', 1778235340022)
|
||||
export class LinkRolePermissionFlagToPermissionFlagFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class LinkRolePermissionFlagToPermissionFlagFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."rolePermissionFlag"
|
||||
|
||||
+1
-3
@@ -4,9 +4,7 @@ import { RegisteredInstanceCommand } from 'src/engine/core-modules/upgrade/decor
|
||||
import { FastInstanceCommand } from 'src/engine/core-modules/upgrade/interfaces/fast-instance-command.interface';
|
||||
|
||||
@RegisteredInstanceCommand('2.6.0', 1798000005000)
|
||||
export class AddRelationTargetFieldMetadataIdToViewFilterFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddRelationTargetFieldMetadataIdToViewFilterFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."viewFilter" ADD COLUMN IF NOT EXISTS "relationTargetFieldMetadataId" uuid`,
|
||||
|
||||
+1
-3
@@ -9,9 +9,7 @@ const CALENDAR_CHANNEL_INDEX_NAME =
|
||||
'IDX_CALENDAR_CHANNEL_WORKSPACE_ID_SYNC_ENABLED_SYNC_STAGE';
|
||||
|
||||
@RegisteredInstanceCommand('2.6.0', 1798000010000)
|
||||
export class AddChannelSyncStageIndexesFastInstanceCommand
|
||||
implements FastInstanceCommand
|
||||
{
|
||||
export class AddChannelSyncStageIndexesFastInstanceCommand implements FastInstanceCommand {
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`CREATE INDEX IF NOT EXISTS "${MESSAGE_CHANNEL_INDEX_NAME}" ON "core"."messageChannel" ("workspaceId", "isSyncEnabled", "syncStage")`,
|
||||
|
||||
+1
-3
@@ -9,9 +9,7 @@ import { STANDARD_PERMISSION_FLAG_DEFINITIONS } from 'src/engine/metadata-module
|
||||
const PERMISSION_FLAG_TYPES = Object.values(PermissionFlagType) as string[];
|
||||
|
||||
@RegisteredInstanceCommand('2.6.0', 1778235340023, { type: 'slow' })
|
||||
export class BackfillRolePermissionFlagPermissionFlagIdSlowInstanceCommand
|
||||
implements SlowInstanceCommand
|
||||
{
|
||||
export class BackfillRolePermissionFlagPermissionFlagIdSlowInstanceCommand implements SlowInstanceCommand {
|
||||
async runDataMigration(dataSource: DataSource): Promise<void> {
|
||||
const unknownFlagRows: { flag: string }[] = await dataSource.query(
|
||||
`SELECT DISTINCT "flag" FROM "core"."rolePermissionFlag"
|
||||
|
||||
+1
-3
@@ -35,9 +35,7 @@ const hasPlaintextPassword = (params: ImapSmtpCaldavParams): boolean => {
|
||||
};
|
||||
|
||||
@RegisteredInstanceCommand('2.7.0', 1798000010000, { type: 'slow' })
|
||||
export class EncryptConnectionParametersSlowInstanceCommand
|
||||
implements SlowInstanceCommand
|
||||
{
|
||||
export class EncryptConnectionParametersSlowInstanceCommand implements SlowInstanceCommand {
|
||||
constructor(
|
||||
private readonly connectedAccountTokenEncryptionService: ConnectedAccountTokenEncryptionService,
|
||||
) {}
|
||||
|
||||
Reference in New Issue
Block a user