postal Code & commandHandler update

This commit is contained in:
Julian Krauser 2025-01-03 19:26:33 +01:00
parent 14677d2030
commit dd72f37856
13 changed files with 70 additions and 76 deletions

View 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");
}
}