UNPKG

@brewww/authentication-service

Version:
20 lines 1.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AddPhoneVerifiedAndAlterPasswordFieldsInUsers1720701234885 = void 0; class AddPhoneVerifiedAndAlterPasswordFieldsInUsers1720701234885 { constructor() { this.name = 'AddPhoneVerifiedAndAlterPasswordFieldsInUsers1720701234885'; } async up(queryRunner) { await queryRunner.query(`ALTER TABLE "users" ADD "phone_verified" boolean NOT NULL DEFAULT false`); await queryRunner.query(`ALTER TABLE "users" ALTER COLUMN "password_hash" DROP NOT NULL`); await queryRunner.query(`ALTER TABLE "users" ALTER COLUMN "password_salt" DROP NOT NULL`); } async down(queryRunner) { await queryRunner.query(`ALTER TABLE "users" ALTER COLUMN "password_salt" SET NOT NULL`); await queryRunner.query(`ALTER TABLE "users" ALTER COLUMN "password_hash" SET NOT NULL`); await queryRunner.query(`ALTER TABLE "users" DROP COLUMN "phone_verified"`); } } exports.AddPhoneVerifiedAndAlterPasswordFieldsInUsers1720701234885 = AddPhoneVerifiedAndAlterPasswordFieldsInUsers1720701234885; //# sourceMappingURL=1720701234885-addPhoneVerifiedAndAlterPasswordFieldsInUsers.js.map