ToolJet/server/migrations/1655320273619-PasswordPolicyRetryCount.ts
Midhun G S 9a5dbacf9f
Password retry limit (#3300)
* password retry limit

* minor change in doc

* test cases

* fixes

* lint issue

* doc changes

Co-authored-by: Shubhendra <withshubh@gmail.com>
2022-06-30 00:49:45 +05:30

17 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> {}
}