UNPKG

@brewww/authentication-service

Version:
22 lines 1.42 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AlterTableUsersAddPhoneNumberAndCountryCode1716459645805 = void 0; class AlterTableUsersAddPhoneNumberAndCountryCode1716459645805 { constructor() { this.name = 'AlterTableUsersAddPhoneNumberAndCountryCode1716459645805'; } async up(queryRunner) { await queryRunner.query(`ALTER TABLE "users" ADD "country_code" character varying`); await queryRunner.query(`ALTER TABLE "users" ADD CONSTRAINT "UQ_3af2173ef46868bbebe55ab4d4d" UNIQUE ("country_code")`); await queryRunner.query(`ALTER TABLE "users" ADD "phone_number" character varying`); await queryRunner.query(`ALTER TABLE "users" ADD CONSTRAINT "UQ_17d1817f241f10a3dbafb169fd2" UNIQUE ("phone_number")`); } async down(queryRunner) { await queryRunner.query(`ALTER TABLE "users" DROP CONSTRAINT "UQ_17d1817f241f10a3dbafb169fd2"`); await queryRunner.query(`ALTER TABLE "users" DROP COLUMN "phone_number"`); await queryRunner.query(`ALTER TABLE "users" DROP CONSTRAINT "UQ_3af2173ef46868bbebe55ab4d4d"`); await queryRunner.query(`ALTER TABLE "users" DROP COLUMN "country_code"`); } } exports.AlterTableUsersAddPhoneNumberAndCountryCode1716459645805 = AlterTableUsersAddPhoneNumberAndCountryCode1716459645805; //# sourceMappingURL=1716459645805-AlterTableUsersAddPhoneNumberAndCountryCode.js.map