Skip to content

Commit

Permalink
fix: 修改用户表字段 salt 为 nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
kangood committed Feb 24, 2024
1 parent f4f2b7e commit 2ed042f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modules/org/entities/user.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,12 @@ export class UserEntity extends BaseEntity {
@Column('varchar', { name: 'password', comment: '密码', length: 64 })
password: string;

@Column('varchar', { name: 'salt', comment: '密码盐', length: 20 })
@Column('varchar', {
name: 'salt',
nullable: true,
comment: '密码盐',
length: 20,
})
salt: string;

@Column('datetime', {
Expand Down

0 comments on commit 2ed042f

Please sign in to comment.