using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace backend.Migrations { public partial class RestaurantFields : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "Address", table: "Restoraunts", type: "text", nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "Image", table: "Restoraunts", type: "bytea", nullable: false, defaultValue: new byte[0]); migrationBuilder.AddColumn( name: "Phone", table: "Restoraunts", type: "text", nullable: false, defaultValue: ""); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Address", table: "Restoraunts"); migrationBuilder.DropColumn( name: "Image", table: "Restoraunts"); migrationBuilder.DropColumn( name: "Phone", table: "Restoraunts"); } } }