Add sync front component (#17748)
## Context Allow twenty apps to sync front components
This commit is contained in:
+43
@@ -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"`,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user