Improve readme (#14858)
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
import { type MigrationInterface, type QueryRunner } from 'typeorm';
|
||||
|
||||
export class RenameApplicationColumn1759433496458
|
||||
implements MigrationInterface
|
||||
{
|
||||
name = 'RenameApplicationColumn1759433496458';
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."application" RENAME COLUMN "label" TO "name"`,
|
||||
);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "core"."application" RENAME COLUMN "name" TO "label"`,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user