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