using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace asg_form.Migrations { /// public partial class newstime : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "closetime", table: "F_game"); migrationBuilder.AddColumn( name: "time", table: "F_news", type: "datetime2", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); migrationBuilder.AddColumn( name: "bilibiliuri", table: "F_game", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "commentary", table: "F_game", type: "nvarchar(max)", nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "referee", table: "F_game", type: "nvarchar(max)", nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "winteam", table: "F_game", type: "nvarchar(max)", nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "chinaname", table: "AspNetUsers", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "officium", table: "AspNetUsers", type: "nvarchar(max)", nullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "time", table: "F_news"); migrationBuilder.DropColumn( name: "bilibiliuri", table: "F_game"); migrationBuilder.DropColumn( name: "commentary", table: "F_game"); migrationBuilder.DropColumn( name: "referee", table: "F_game"); migrationBuilder.DropColumn( name: "winteam", table: "F_game"); migrationBuilder.DropColumn( name: "chinaname", table: "AspNetUsers"); migrationBuilder.DropColumn( name: "officium", table: "AspNetUsers"); migrationBuilder.AddColumn( name: "closetime", table: "F_game", type: "datetime2", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); } } }