Add sync front component (#17748)

## Context
Allow twenty apps to sync front components
This commit is contained in:
Weiko
2026-02-09 00:00:23 +01:00
committed by GitHub
parent 40d7e740ef
commit 9aa63f7ddc
33 changed files with 643 additions and 97 deletions
@@ -0,0 +1,43 @@
import { type MigrationInterface, type QueryRunner } from 'typeorm';
export class AddFrontComponentColumns1770309316193
implements MigrationInterface
{
name = 'AddFrontComponentColumns1770309316193';
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "core"."frontComponent" ADD "description" character varying`,
);
await queryRunner.query(
`ALTER TABLE "core"."frontComponent" ADD "sourceComponentPath" character varying NOT NULL`,
);
await queryRunner.query(
`ALTER TABLE "core"."frontComponent" ADD "builtComponentPath" character varying NOT NULL`,
);
await queryRunner.query(
`ALTER TABLE "core"."frontComponent" ADD "componentName" character varying NOT NULL`,
);
await queryRunner.query(
`ALTER TABLE "core"."frontComponent" ADD "builtComponentChecksum" character varying NOT NULL`,
);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "core"."frontComponent" DROP COLUMN "builtComponentChecksum"`,
);
await queryRunner.query(
`ALTER TABLE "core"."frontComponent" DROP COLUMN "componentName"`,
);
await queryRunner.query(
`ALTER TABLE "core"."frontComponent" DROP COLUMN "builtComponentPath"`,
);
await queryRunner.query(
`ALTER TABLE "core"."frontComponent" DROP COLUMN "sourceComponentPath"`,
);
await queryRunner.query(
`ALTER TABLE "core"."frontComponent" DROP COLUMN "description"`,
);
}
}