secure type with passphrase
This commit is contained in:
parent
597feef9ef
commit
8f49533fcb
9 changed files with 44 additions and 2 deletions
20
src/migrations/1733249553766-securingCalendarType.ts
Normal file
20
src/migrations/1733249553766-securingCalendarType.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
import { MigrationInterface, QueryRunner, TableColumn } from "typeorm";
|
||||
|
||||
export class SecuringCalendarType1733249553766 implements MigrationInterface {
|
||||
name = "SecuringCalendarType1733249553766";
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.addColumns("calendar_type", [
|
||||
new TableColumn({
|
||||
name: "passphrase",
|
||||
type: "varchar",
|
||||
length: "255",
|
||||
isNullable: true,
|
||||
}),
|
||||
]);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.dropColumn("calendar_type", "passphrase");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue