summaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorSatsuki Yanagi <17376330+u1-liquid@users.noreply.github.com>2019-07-07 01:38:36 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-07-07 01:38:36 +0900
commit047a46d96689a97bee4c843fcd86e63b816846f1 (patch)
tree6c5c2f8c06941c36207986c5adc0e1c7a23647b4 /migration
parentPages: ボタンを色付き表示できるように (diff)
downloadsharkey-047a46d96689a97bee4c843fcd86e63b816846f1.tar.gz
sharkey-047a46d96689a97bee4c843fcd86e63b816846f1.tar.bz2
sharkey-047a46d96689a97bee4c843fcd86e63b816846f1.zip
Support password-less login with WebAuthn (#5112)
* Support password-less login with WebAuthn * Fix initial value of usePasswordLessLogin
Diffstat (limited to 'migration')
-rw-r--r--migration/1562422242907-PasswordLessLogin.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/migration/1562422242907-PasswordLessLogin.ts b/migration/1562422242907-PasswordLessLogin.ts
new file mode 100644
index 0000000000..e789a34334
--- /dev/null
+++ b/migration/1562422242907-PasswordLessLogin.ts
@@ -0,0 +1,13 @@
+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"`);
+ }
+
+}