postal Code & commandHandler update
This commit is contained in:
parent
14677d2030
commit
dd72f37856
13 changed files with 70 additions and 76 deletions
22
src/migrations/1735927918979-postalCode.ts
Normal file
22
src/migrations/1735927918979-postalCode.ts
Normal file
|
@ -0,0 +1,22 @@
|
|||
import { MigrationInterface, QueryRunner, TableColumn } from "typeorm";
|
||||
|
||||
export class PostalCode1735927918979 implements MigrationInterface {
|
||||
name = "PostalCode1735927918979";
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.addColumn(
|
||||
"communication",
|
||||
new TableColumn({
|
||||
name: "postalCode",
|
||||
type: "varchar",
|
||||
length: "255",
|
||||
default: null,
|
||||
isNullable: true,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.dropColumn("communication", "postalCode");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue