using System; using Microsoft.EntityFrameworkCore.Migrations; namespace SharedLibraryCore.Migrations { public partial class AddFractionAndIsKill : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "Fraction", table: "EFClientKills", nullable: false, defaultValue: 0.0); migrationBuilder.AddColumn( name: "IsKill", table: "EFClientKills", nullable: false, defaultValue: false); migrationBuilder.CreateTable( name: "EFChangeHistory", columns: table => new { Active = table.Column(nullable: false), ChangeHistoryId = table.Column(nullable: false) .Annotation("Sqlite:Autoincrement", true), OriginEntityId = table.Column(nullable: false), TargetEntityId = table.Column(nullable: false), TypeOfChange = table.Column(nullable: false), TimeChanged = table.Column(nullable: false), Comment = table.Column(maxLength: 128, nullable: true) }, constraints: table => { table.PrimaryKey("PK_EFChangeHistory", x => x.ChangeHistoryId); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "EFChangeHistory"); migrationBuilder.DropIndex( name: "IX_Vector3_EFACSnapshotSnapshotId", table: "Vector3"); migrationBuilder.DropColumn( name: "Fraction", table: "EFClientKills"); migrationBuilder.DropColumn( name: "IsKill", table: "EFClientKills"); } } }