using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Health.Infrastructure.Data.Migrations { /// public partial class AddAppleSignIn : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Phone", table: "Users", type: "text", nullable: true, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AddColumn( name: "AppleUserId", table: "Users", type: "text", nullable: true); migrationBuilder.CreateIndex( name: "IX_Users_AppleUserId", table: "Users", column: "AppleUserId", unique: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropIndex( name: "IX_Users_AppleUserId", table: "Users"); migrationBuilder.DropColumn( name: "AppleUserId", table: "Users"); migrationBuilder.AlterColumn( name: "Phone", table: "Users", type: "text", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "text", oldNullable: true); } } }