Serverless built updates (#17351)
follow up of https://github.com/twentyhq/twenty/pull/17317
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
import { type MigrationInterface, type QueryRunner } from 'typeorm';
|
||||
|
||||
export class RenameHandlerPathToSourceHandlerPath1769091641000
|
||||
implements MigrationInterface
|
||||
{
|
||||
name = 'RenameHandlerPathToSourceHandlerPath1769091641000';
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."serverlessFunction" RENAME COLUMN "handlerPath" TO "sourceHandlerPath"`,
|
||||
);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."serverlessFunction" RENAME COLUMN "sourceHandlerPath" TO "handlerPath"`,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user