mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-28 17:07:22 +00:00
18 lines
487 B
TypeScript
18 lines
487 B
TypeScript
|
|
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';
|
||
|
|
|
||
|
|
export class PasswordPolicyRetryCount1655320273619 implements MigrationInterface {
|
||
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||
|
|
await queryRunner.addColumn(
|
||
|
|
'users',
|
||
|
|
new TableColumn({
|
||
|
|
name: 'password_retry_count',
|
||
|
|
type: 'smallint',
|
||
|
|
isNullable: false,
|
||
|
|
default: 0,
|
||
|
|
})
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
public async down(queryRunner: QueryRunner): Promise<void> {}
|
||
|
|
}
|