using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace LiteCharms.Features.MidrandBooks.Postgres.Migrations { /// public partial class OnlyEmailIsMandatoryOnCustomer : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Website", table: "Customers", type: "text", nullable: true, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AlterColumn( name: "Phone", table: "Customers", type: "text", nullable: true, oldClrType: typeof(string), oldType: "text"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Website", table: "Customers", type: "text", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "text", oldNullable: true); migrationBuilder.AlterColumn( name: "Phone", table: "Customers", type: "text", nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "text", oldNullable: true); } } }