mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-12 13:07:33 -07:00
80c55fbc76
* Support password-less login with WebAuthn * Fix initial value of usePasswordLessLogin
13 lines
479 B
TypeScript
13 lines
479 B
TypeScript
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
|
|
export class PasswordLessLogin1562422242907 implements MigrationInterface {
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<any> {
|
|
await queryRunner.query(`ALTER TABLE "user_profile" ADD COLUMN "usePasswordLessLogin" boolean DEFAULT false NOT NULL`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<any> {
|
|
await queryRunner.query(`ALTER TABLE "user_profile" DROP COLUMN "usePasswordLessLogin"`);
|
|
}
|
|
|
|
}
|