make address in job info can be null

This commit is contained in:
geekgeekrun
2024-10-20 13:20:08 +08:00
parent 072df7e92a
commit 0fd13c5ac5
5 changed files with 17 additions and 5 deletions

View File

@@ -40,8 +40,10 @@ export class JobInfo {
})
degreeName?: string;
@Column()
address: string;
@Column({
nullable: true
})
address?: string;
@Column()
description: string;

View File

@@ -45,7 +45,7 @@ export class VChatStartupLog {
degreeName: string;
@ViewColumn()
address: string;
address?: string;
@ViewColumn()
description: string;

View File

@@ -41,7 +41,7 @@ export class VJobLibrary {
degreeName: string;
@ViewColumn()
address: string;
address?: string;
@ViewColumn()
description: string;

View File

@@ -49,7 +49,7 @@ export class VMarkAsNotSuitLog {
degreeName: string;
@ViewColumn()
address: string;
address?: string;
@ViewColumn()
description: string;

View File

@@ -5,6 +5,7 @@ const viewNames = [
"v_chat_startup_log",
"v_company_library",
"v_job_library",
"v_mark_as_not_suit_log"
];
export class UpdateChatStartupLogTable1729182577167
@@ -29,6 +30,15 @@ export class UpdateChatStartupLogTable1729182577167
isNullable: true
})
)
await queryRunner.changeColumn(
'job_info',
'address',
new TableColumn({
name: 'address',
type: 'varchar',
isNullable: true
})
)
}
}