@brewww/authentication-service
Version:
Authenticator service for Brew projects.
20 lines • 1.2 kB
JavaScript
;
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