mirror of
https://github.com/sim1222/misskey.git
synced 2025-04-28 18:27:21 +09:00
14 lines
479 B
TypeScript
14 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"`);
|
|
}
|
|
|
|
}
|